redundant cases
authorChristian Grothoff <christian@grothoff.org>
Fri, 2 Jul 2010 13:51:25 +0000 (13:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 2 Jul 2010 13:51:25 +0000 (13:51 +0000)
src/transport/plugin_transport_tcp.c
src/transport/plugin_transport_udp.c

index 47936b3364e27d1fb550f9fdf5a33dd5abc8a5a3..93ee4c88e66bb62383c0a0a3a1da9d8de3de8b3a 100644 (file)
@@ -1453,8 +1453,7 @@ check_port (struct Plugin *plugin, uint16_t in_port)
   if ( (plugin->behind_nat == GNUNET_YES) && (in_port == 0) )
     return GNUNET_OK;
   if ( (plugin->only_nat_addresses == GNUNET_YES) &&
-       (plugin->behind_nat == GNUNET_YES) &&
-       (in_port != 0) )
+       (plugin->behind_nat == GNUNET_YES) )
     {
       return GNUNET_SYSERR; /* odd case... */
     }
index 41cf193712cee8c5ed77fd7cd1bd5c40a81443a7..e54479b4fa5d8f8816093da9a9f8389cbbef4db8 100644 (file)
@@ -1680,8 +1680,7 @@ check_port (struct Plugin *plugin, uint16_t in_port)
   if ( (plugin->behind_nat == GNUNET_YES) && (in_port == 0) )
     return GNUNET_OK;
   if ( (plugin->only_nat_addresses == GNUNET_YES) &&
-       (plugin->behind_nat == GNUNET_YES) &&
-       (in_port != 0) )
+       (plugin->behind_nat == GNUNET_YES) )
     return GNUNET_SYSERR; /* odd case... */
   if (in_port == plugin->port) 
     return GNUNET_OK;