gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r27959 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r27959 - gnunet/src/transport
Date: Fri, 12 Jul 2013 16:15:37 +0200

Author: wachs
Date: 2013-07-12 16:15:37 +0200 (Fri, 12 Jul 2013)
New Revision: 27959

Modified:
   gnunet/src/transport/plugin_transport_udp.c
Log:
important check


Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2013-07-12 13:53:08 UTC (rev 
27958)
+++ gnunet/src/transport/plugin_transport_udp.c 2013-07-12 14:15:37 UTC (rev 
27959)
@@ -1562,6 +1562,15 @@
 {
   struct Session * s = NULL;
 
+  if (NULL == address)
+  {
+       GNUNET_break (0);
+       return NULL;
+  }
+  if ((address->address_length != sizeof (struct IPv4UdpAddress)) &&
+               (address->address_length != sizeof (struct IPv6UdpAddress)))
+               return NULL;
+
   /* otherwise create new */
   if (NULL != (s = udp_plugin_lookup_session(cls, address)))
        return s;




reply via email to

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