diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-12 14:15:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-12 14:15:37 +0000 |
commit | 3b36a778cb63ea83a0ccc711dfe0ce9ce7107026 (patch) | |
tree | e0380e15cd04b1d7a87ffc249a1cf1a1250eeac1 /src/transport/plugin_transport_udp.c | |
parent | 76949343adce28480826648d05af7fd7d165eedb (diff) | |
download | gnunet-3b36a778cb63ea83a0ccc711dfe0ce9ce7107026.tar.gz gnunet-3b36a778cb63ea83a0ccc711dfe0ce9ce7107026.zip |
important check
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 9c8c585de..925159a76 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -1562,6 +1562,15 @@ udp_plugin_get_session (void *cls, | |||
1562 | { | 1562 | { |
1563 | struct Session * s = NULL; | 1563 | struct Session * s = NULL; |
1564 | 1564 | ||
1565 | if (NULL == address) | ||
1566 | { | ||
1567 | GNUNET_break (0); | ||
1568 | return NULL; | ||
1569 | } | ||
1570 | if ((address->address_length != sizeof (struct IPv4UdpAddress)) && | ||
1571 | (address->address_length != sizeof (struct IPv6UdpAddress))) | ||
1572 | return NULL; | ||
1573 | |||
1565 | /* otherwise create new */ | 1574 | /* otherwise create new */ |
1566 | if (NULL != (s = udp_plugin_lookup_session(cls, address))) | 1575 | if (NULL != (s = udp_plugin_lookup_session(cls, address))) |
1567 | return s; | 1576 | return s; |