Always release the reference to the sock structure.
[ipfw.git] / dummynet / ipfw2_mod.c
index b072ab5..c6a0699 100644 (file)
@@ -567,7 +567,7 @@ linux_lookup(const int proto, const __be32 saddr, const __be16 sport,
 #endif
                ret = 1;
        }
-       if (1 && !skb->sk) /* the reference came from the lookup */
+       if (1 || !skb->sk) /* the reference came from the lookup */
                sock_put(sk);
 #undef _CURR_UID
 #undef _CURR_GID