-fix
authorChristian Grothoff <christian@grothoff.org>
Sun, 12 Feb 2012 11:17:21 +0000 (11:17 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 12 Feb 2012 11:17:21 +0000 (11:17 +0000)
src/exit/gnunet-daemon-exit.c

index 7cd207a50a4a26e773540993d9a21663fe6b004b..adabb70e5bb1e03b2d478af3ea64105042dcb3ba 100644 (file)
@@ -395,8 +395,8 @@ get_redirect_state (int af,
   GNUNET_HashCode key;
   struct TunnelState *state;
 
-  if ( ( (af == AF_INET) && (proto == IPPROTO_ICMP) ) ||
-       ( (af == AF_INET6) && (proto == IPPROTO_ICMPV6) ) )
+  if ( ( (af == AF_INET) && (protocol == IPPROTO_ICMP) ) ||
+       ( (af == AF_INET6) && (protocol == IPPROTO_ICMPV6) ) )
   {
     /* ignore ports */
     destination_port = 0;