fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 9 Nov 2011 11:06:30 +0000 (11:06 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 9 Nov 2011 11:06:30 +0000 (11:06 +0000)
src/transport/gnunet-service-transport_validation.c

index 9b0fc07324232b3f297e93e934303ea71b3463b7..29dfb17cc7992d560840289bacc35f628c34359e 100644 (file)
@@ -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);