Fix NULL pointer check.
authorDavid Barksdale <amatus.amongus@gmail.com>
Thu, 30 Sep 2010 21:58:54 +0000 (21:58 +0000)
committerDavid Barksdale <amatus.amongus@gmail.com>
Thu, 30 Sep 2010 21:58:54 +0000 (21:58 +0000)
src/transport/transport_api.c

index 1eea40bb7da01e73b36bb5a6ec7dbede9ff26769..02f69fcad86ca0a0af3aef8a1347f361cb927717 100644 (file)
@@ -1135,7 +1135,7 @@ neighbour_disconnect (struct NeighbourList *n)
 #endif
   GNUNET_break (n->is_connected == GNUNET_YES);
   n->is_connected = GNUNET_NO;
-  if (h->nc_cb != NULL)
+  if (h->nd_cb != NULL)
     h->nd_cb (h->cls, &n->id);
   if (n->transmit_stage == TS_NEW)
     neighbour_free (n);