aboutsummaryrefslogtreecommitdiff
path: root/src/set
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-24 18:28:43 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-24 18:28:43 +0000
commit4b38f90e8fecf47e27e87f9aaf95956a57e88a17 (patch)
treeb68efad292847066aad978438355390661f56ce3 /src/set
parent4195efabbf904a32039936b4711abef0575e7556 (diff)
downloadgnunet-4b38f90e8fecf47e27e87f9aaf95956a57e88a17.tar.gz
gnunet-4b38f90e8fecf47e27e87f9aaf95956a57e88a17.zip
-fix setfault (op->vt can be NULL)
Diffstat (limited to 'src/set')
-rw-r--r--src/set/gnunet-service-set.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c
index b5aa659be..b84a79453 100644
--- a/src/set/gnunet-service-set.c
+++ b/src/set/gnunet-service-set.c
@@ -1333,7 +1333,10 @@ dispatch_p2p_message (void *cls,
1333 ntohs (message->type)); 1333 ntohs (message->type));
1334 /* do this before the handler, as the handler might kill the channel */ 1334 /* do this before the handler, as the handler might kill the channel */
1335 GNUNET_MESH_receive_done (channel); 1335 GNUNET_MESH_receive_done (channel);
1336 ret = op->vt->msg_handler (op, message); 1336 if (NULL != op->vt)
1337 ret = op->vt->msg_handler (op, message);
1338 else
1339 ret = GNUNET_SYSERR;
1337 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1340 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1338 "handled mesh message (type: %u)\n", 1341 "handled mesh message (type: %u)\n",
1339 ntohs (message->type)); 1342 ntohs (message->type));