gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r30630 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r30630 - gnunet/src/mesh
Date: Fri, 8 Nov 2013 15:50:46 +0100

Author: bartpolot
Date: 2013-11-08 15:50:46 +0100 (Fri, 08 Nov 2013)
New Revision: 30630

Modified:
   gnunet/src/mesh/gnunet-service-mesh_connection.c
Log:
- fix NPE


Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-11-08 14:37:53 UTC 
(rev 30629)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-11-08 14:50:46 UTC 
(rev 30630)
@@ -506,7 +506,7 @@
   fc = fwd ? &c->fwd_fc : &c->bck_fc;
   LOG (GNUNET_ERROR_TYPE_DEBUG, "!  sent %s\n", GNUNET_MESH_DEBUG_M2S (type));
   LOG (GNUNET_ERROR_TYPE_DEBUG, "!  C_P- %p %u\n", c, c->pending_messages);
-  if (NULL != q->cont)
+  if (NULL != q && NULL != q->cont)
   {
     LOG (GNUNET_ERROR_TYPE_DEBUG, "!  calling cont\n");
     q->cont (q->cont_cls, c, q, type, fwd, size);
@@ -2373,8 +2373,8 @@
       LOG (GNUNET_ERROR_TYPE_DEBUG, "  Q_N+ %p %u\n", fc, fc->queue_n);
       fc->queue_n++;
       LOG (GNUNET_ERROR_TYPE_DEBUG, "pid %u\n", ntohl (emsg->pid));
-      LOG (GNUNET_ERROR_TYPE_DEBUG, "last pid %u\n", fc->last_pid_sent);
-      LOG (GNUNET_ERROR_TYPE_DEBUG, "     ack %u\n", fc->last_ack_recv);
+      LOG (GNUNET_ERROR_TYPE_DEBUG, "last pid sent %u\n", fc->last_pid_sent);
+      LOG (GNUNET_ERROR_TYPE_DEBUG, "     ack recv %u\n", fc->last_ack_recv);
       if (GMC_is_pid_bigger (fc->last_pid_sent + 1, fc->last_ack_recv))
       {
         GMC_start_poll (c, fwd);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]