[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11662 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11662 - gnunet/src/transport |
Date: |
Fri, 11 Jun 2010 12:54:55 +0200 |
Author: nevans
Date: 2010-06-11 12:54:55 +0200 (Fri, 11 Jun 2010)
New Revision: 11662
Modified:
gnunet/src/transport/gnunet-service-transport.c
gnunet/src/transport/plugin_transport_udp.c
Log:
bugs from codesonar
Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c 2010-06-11 09:46:59 UTC
(rev 11661)
+++ gnunet/src/transport/gnunet-service-transport.c 2010-06-11 10:54:55 UTC
(rev 11662)
@@ -1042,6 +1042,7 @@
}
/* FIXME: use mmap */
data = GNUNET_malloc_large (frstat.st_size);
+ GNUNET_assert(data != NULL);
if (frstat.st_size !=
GNUNET_DISK_fn_read (fn, data, frstat.st_size))
{
Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2010-06-11 09:46:59 UTC (rev
11661)
+++ gnunet/src/transport/plugin_transport_udp.c 2010-06-11 10:54:55 UTC (rev
11662)
@@ -522,7 +522,8 @@
GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, "udp", _
("udp_plugin_send called without address, returning!\n"));
#endif
- cont (cont_cls, target, GNUNET_SYSERR);
+ if (cont != NULL)
+ cont (cont_cls, target, GNUNET_SYSERR);
return 0; /* Can never send if we don't have an address!! */
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11662 - gnunet/src/transport,
gnunet <=