diff options
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index f4a806723..ddb6187e5 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -681,11 +681,14 @@ udp_plugin_send (void *cls, const struct GNUNET_PeerIdentity *target, | |||
681 | } | 681 | } |
682 | } | 682 | } |
683 | //session_invalid: | 683 | //session_invalid: |
684 | if ((addr == NULL) && (addrlen == 0)) | ||
685 | return GNUNET_SYSERR; | ||
684 | peer_session = create_session (plugin, target, addr, addrlen, cont, cont_cls); | 686 | peer_session = create_session (plugin, target, addr, addrlen, cont, cont_cls); |
685 | if (peer_session == NULL) | 687 | if (peer_session == NULL) |
686 | { | 688 | { |
687 | if (cont != NULL) | 689 | if (cont != NULL) |
688 | cont (cont_cls, target, GNUNET_SYSERR); | 690 | cont (cont_cls, target, GNUNET_SYSERR); |
691 | return GNUNET_SYSERR;; | ||
689 | } | 692 | } |
690 | 693 | ||
691 | /* Message */ | 694 | /* Message */ |