Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184166
b: refs/heads/master
c: 54101f4
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy committed Feb 11, 2010
1 parent ac4ea24 commit 41ef58a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b87921bdf25485afd8f5a5f25e86b5acef32a9cf
refs/heads/master: 54101f4f3bed87fa968b57f77f8ff3b09fd88bcf
7 changes: 4 additions & 3 deletions trunk/net/netfilter/nf_conntrack_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,13 @@ int ct_sip_parse_request(const struct nf_conn *ct,
return 0;

/* Find SIP URI */
limit -= strlen("sip:");
for (; dptr < limit; dptr++) {
for (; dptr < limit - strlen("sip:"); dptr++) {
if (*dptr == '\r' || *dptr == '\n')
return -1;
if (strnicmp(dptr, "sip:", strlen("sip:")) == 0)
if (strnicmp(dptr, "sip:", strlen("sip:")) == 0) {
dptr += strlen("sip:");
break;
}
}
if (!skp_epaddr_len(ct, dptr, limit, &shift))
return 0;
Expand Down

0 comments on commit 41ef58a

Please sign in to comment.