-removing pointless NULL cmp
authorChristian Grothoff <christian@grothoff.org>
Sat, 27 Aug 2016 17:48:18 +0000 (17:48 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 27 Aug 2016 17:48:18 +0000 (17:48 +0000)
src/testbed/gnunet-service-testbed_oc.c

index 63ea27c04d874a4038bbcf2f2ad5cbbe833dba3c..c681c38100050b56667dac531f216be0261c8ff2 100644 (file)
@@ -1821,8 +1821,7 @@ GST_handle_remote_overlay_connect (void *cls,
     return;
   }
   msg = (const struct GNUNET_TESTBED_RemoteOverlayConnectMessage *) message;
-  if ((NULL == msg->hello) ||
-      ((GNUNET_MESSAGE_TYPE_HELLO != ntohs (msg->hello->type))))
+  if (GNUNET_MESSAGE_TYPE_HELLO != ntohs (msg->hello->type))
   {
     GNUNET_break (0);
     GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);