From: Christian Grothoff Date: Wed, 9 Nov 2011 11:06:30 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~15991 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ea4b4d075258f385b3ffdc9976bf978802691e1d;p=oweals%2Fgnunet.git fix --- diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index 9b0fc0732..29dfb17cc 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c @@ -1169,7 +1169,10 @@ GST_validation_set_address_use (const struct GNUNET_PeerIdentity *sender, { struct ValidationEntry *ve; - ve = find_validation_entry (NULL, address); + if (NULL != address) + ve = find_validation_entry (NULL, address); + else + ve = NULL; /* FIXME: lookup based on session... */ if (NULL == ve) { /* FIXME: this can happen for inbound connections (sender_address_len == 0);