initialize variable on all paths
authorChristian Grothoff <christian@grothoff.org>
Fri, 5 Jan 2018 19:53:33 +0000 (20:53 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 5 Jan 2018 19:53:45 +0000 (20:53 +0100)
src/util/network.c

index d7059a0579c21875097204d1c96aaf499cfa15f2..973878f93cdd943a6f0cba69625f975f0b151d57 100644 (file)
@@ -1738,6 +1738,7 @@ GNUNET_NETWORK_test_port_free (int ipproto,
                                   open_port_str,
                                   &hint,
                                   &ret));
+  bind_status = GNUNET_NO;
   for (ai = ret; NULL != ai; ai = ai->ai_next)
   {
     socket = GNUNET_NETWORK_socket_create (ai->ai_family,