fixing crash
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 18 Oct 2013 14:16:19 +0000 (14:16 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 18 Oct 2013 14:16:19 +0000 (14:16 +0000)
src/transport/gnunet-service-transport_neighbours.c

index c92bf3a87340f68454fe869e4faa07b6ca163561..49470d3666a89e7c90add635c3c9ae3c47a08f1b 100644 (file)
@@ -2492,12 +2492,10 @@ GST_neighbours_notify_data_sent (const struct GNUNET_PeerIdentity *peer,
 {
   struct NeighbourMapEntry *n;
   n = lookup_neighbour (peer);
-  if (n->primary_address.session != session)
-    return;
   if (NULL == n)
-  {
       return;
-  }
+  if (n->primary_address.session != session)
+    return;
   n->util_total_bytes_sent += size;
 }