From 9086711d564701c2a41bb09a16c3b36b3f7d20c9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 14 Apr 2010 08:32:48 +0000 Subject: [PATCH] fix --- src/transport/gnunet-service-transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1