git://git.onelab.eu
/
ipfw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Always release the reference to the sock structure.
[ipfw.git]
/
dummynet
/
ipfw2_mod.c
diff --git
a/dummynet/ipfw2_mod.c
b/dummynet/ipfw2_mod.c
index
b072ab5
..
c6a0699
100644
(file)
--- a/
dummynet/ipfw2_mod.c
+++ b/
dummynet/ipfw2_mod.c
@@
-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