projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3501953
)
[NETFILTER]: nf_conntrack_sip: check sname != NULL before calling strncmp
author
Patrick McHardy
<kaber@trash.net>
Tue, 14 Aug 2007 20:13:54 +0000
(13:13 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 14 Aug 2007 20:13:54 +0000
(13:13 -0700)
The check got lost during the conversion to nf_conntrack.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_sip.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_conntrack_sip.c
b/net/netfilter/nf_conntrack_sip.c
index 1276a442f10c53936d021be834631860285fd660..5cc9636e46e9f3fef1be918caf6aa18ef7cac790 100644
(file)
--- a/
net/netfilter/nf_conntrack_sip.c
+++ b/
net/netfilter/nf_conntrack_sip.c
@@
-330,7
+330,8
@@
int ct_sip_get_info(struct nf_conn *ct,
while (dptr <= limit) {
if ((strncmp(dptr, hnfo->lname, hnfo->lnlen) != 0) &&
- (strncmp(dptr, hnfo->sname, hnfo->snlen) != 0)) {
+ (hnfo->sname == NULL ||
+ strncmp(dptr, hnfo->sname, hnfo->snlen) != 0)) {
dptr++;
continue;
}