diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-07-02 13:51:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-07-02 13:51:25 +0000 |
commit | a93ac678894076e74681fa9e10de0792a3894768 (patch) | |
tree | 8285f78bb22bfcb25f37c96e1fa08b32d0f75247 /src/transport/plugin_transport_udp.c | |
parent | 4fc53710567f9324696f859ac6e0d6a9f87650f9 (diff) | |
download | gnunet-a93ac678894076e74681fa9e10de0792a3894768.tar.gz gnunet-a93ac678894076e74681fa9e10de0792a3894768.zip |
redundant cases
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 41cf19371..e54479b4f 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -1680,8 +1680,7 @@ check_port (struct Plugin *plugin, uint16_t in_port) | |||
1680 | if ( (plugin->behind_nat == GNUNET_YES) && (in_port == 0) ) | 1680 | if ( (plugin->behind_nat == GNUNET_YES) && (in_port == 0) ) |
1681 | return GNUNET_OK; | 1681 | return GNUNET_OK; |
1682 | if ( (plugin->only_nat_addresses == GNUNET_YES) && | 1682 | if ( (plugin->only_nat_addresses == GNUNET_YES) && |
1683 | (plugin->behind_nat == GNUNET_YES) && | 1683 | (plugin->behind_nat == GNUNET_YES) ) |
1684 | (in_port != 0) ) | ||
1685 | return GNUNET_SYSERR; /* odd case... */ | 1684 | return GNUNET_SYSERR; /* odd case... */ |
1686 | if (in_port == plugin->port) | 1685 | if (in_port == plugin->port) |
1687 | return GNUNET_OK; | 1686 | return GNUNET_OK; |