aboutsummaryrefslogtreecommitdiff
path: root/src/util/client.c
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2017-11-02 18:15:13 +0100
committert3sserakt <t3ss@posteo.de>2017-11-02 18:15:13 +0100
commitbf2169967b3c5a4a553c133a00dd7d35289f7a9d (patch)
treec415df9e87ce7cc03cfe6dff3024dfe21d61ec8f /src/util/client.c
parentea5102e5ef870b7ed90aebfe44a4caa1148d57df (diff)
parent7c1ce9a71e362727509f013900a50ba5879ca8b2 (diff)
downloadgnunet-bf2169967b3c5a4a553c133a00dd7d35289f7a9d.tar.gz
gnunet-bf2169967b3c5a4a553c133a00dd7d35289f7a9d.zip
Merge branch 'fix_social' of gnunet.org:gnunet into fix_social
Diffstat (limited to 'src/util/client.c')
-rw-r--r--src/util/client.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/client.c b/src/util/client.c
index cf75dffbc..a5eae2a75 100644
--- a/src/util/client.c
+++ b/src/util/client.c
@@ -308,7 +308,9 @@ transmit_ready (void *cls)
308 * 308 *
309 * @param cls the `struct ClientState` 309 * @param cls the `struct ClientState`
310 * @param msg message we received. 310 * @param msg message we received.
311 * @return #GNUNET_OK on success, #GNUNET_SYSERR to stop further processing 311 * @return #GNUNET_OK on success,
312 * #GNUNET_NO to stop further processing due to disconnect (no error)
313 * #GNUNET_SYSERR to stop further processing due to error
312 */ 314 */
313static int 315static int
314recv_message (void *cls, 316recv_message (void *cls,
@@ -317,7 +319,7 @@ recv_message (void *cls,
317 struct ClientState *cstate = cls; 319 struct ClientState *cstate = cls;
318 320
319 if (GNUNET_YES == cstate->in_destroy) 321 if (GNUNET_YES == cstate->in_destroy)
320 return GNUNET_SYSERR; 322 return GNUNET_NO;
321 LOG (GNUNET_ERROR_TYPE_DEBUG, 323 LOG (GNUNET_ERROR_TYPE_DEBUG,
322 "Received message of type %u and size %u from %s\n", 324 "Received message of type %u and size %u from %s\n",
323 ntohs (msg->type), 325 ntohs (msg->type),
@@ -326,7 +328,7 @@ recv_message (void *cls,
326 GNUNET_MQ_inject_message (cstate->mq, 328 GNUNET_MQ_inject_message (cstate->mq,
327 msg); 329 msg);
328 if (GNUNET_YES == cstate->in_destroy) 330 if (GNUNET_YES == cstate->in_destroy)
329 return GNUNET_SYSERR; 331 return GNUNET_NO;
330 return GNUNET_OK; 332 return GNUNET_OK;
331} 333}
332 334