From: Christian Grothoff Date: Wed, 14 Apr 2010 08:32:48 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~22170 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9086711d564701c2a41bb09a16c3b36b3f7d20c9;p=oweals%2Fgnunet.git fix --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index fce1ba7d3..543033c1d 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -1836,7 +1836,7 @@ find_peer_address(struct NeighbourList *neighbour, ( (address_head->addrlen != addrlen) || (memcmp(address_head->addr, addr, addrlen) != 0) ) ) address_head = address_head->next; - if (session != NULL) + if ( (session != NULL) && (address_head != NULL) ) address_head->session = session; /* learn it! */ return address_head; }