Always release the reference to the sock structure.
authormarta <marta@8c455092-636d-4788-adf5-e71def0336e8>
Tue, 17 Nov 2009 16:48:49 +0000 (16:48 +0000)
committermarta <marta@8c455092-636d-4788-adf5-e71def0336e8>
Tue, 17 Nov 2009 16:48:49 +0000 (16:48 +0000)
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