[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11483 - gnunet/src/peerinfo
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11483 - gnunet/src/peerinfo |
Date: |
Fri, 21 May 2010 13:15:20 +0200 |
Author: grothoff
Date: 2010-05-21 13:15:20 +0200 (Fri, 21 May 2010)
New Revision: 11483
Modified:
gnunet/src/peerinfo/peerinfo_api.c
Log:
could theoretically be NULL, check
Modified: gnunet/src/peerinfo/peerinfo_api.c
===================================================================
--- gnunet/src/peerinfo/peerinfo_api.c 2010-05-21 11:15:07 UTC (rev 11482)
+++ gnunet/src/peerinfo/peerinfo_api.c 2010-05-21 11:15:20 UTC (rev 11483)
@@ -232,14 +232,18 @@
("Failed to transmit message of type %u to `%s' service.\n"),
ntohs (msg->type), "peerinfo");
#endif
- GNUNET_CONTAINER_DLL_remove (h->tq_head,
- h->tq_tail,
- tqe);
+ if (tqe != NULL)
+ GNUNET_CONTAINER_DLL_remove (h->tq_head,
+ h->tq_tail,
+ tqe);
reconnect (h);
trigger_transmit (h);
- if (tqe->cont != NULL)
- tqe->cont (tqe->cont_cls, GNUNET_SYSERR);
- GNUNET_free (tqe);
+ if (tqe != NULL)
+ {
+ if (tqe->cont != NULL)
+ tqe->cont (tqe->cont_cls, GNUNET_SYSERR);
+ GNUNET_free (tqe);
+ }
return 0;
}
ret = tqe->size;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11483 - gnunet/src/peerinfo,
gnunet <=