Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46010
b: refs/heads/master
c: 7da5bfb
h: refs/heads/master
v: v3
  • Loading branch information
Lars Immisch authored and David S. Miller committed Jan 30, 2007
1 parent c97a479 commit 2b0deaf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 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: fb74a8416022c033e1a950689c264c453f8f98d8
refs/heads/master: 7da5bfbb12e327b3a347ee3e076957cd6564eb56
8 changes: 7 additions & 1 deletion trunk/net/ipv4/netfilter/ip_conntrack_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,14 @@ static int skp_epaddr_len(const char *dptr, const char *limit, int *shift)
{
int s = *shift;

for (; dptr <= limit && *dptr != '@'; dptr++)
/* Search for @, but stop at the end of the line.
* We are inside a sip: URI, so we don't need to worry about
* continuation lines. */
while (dptr <= limit &&
*dptr != '@' && *dptr != '\r' && *dptr != '\n') {
(*shift)++;
dptr++;
}

if (*dptr == '@') {
dptr++;
Expand Down
8 changes: 7 additions & 1 deletion trunk/net/netfilter/nf_conntrack_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,14 @@ static int skp_epaddr_len(struct nf_conn *ct, const char *dptr,
{
int s = *shift;

for (; dptr <= limit && *dptr != '@'; dptr++)
/* Search for @, but stop at the end of the line.
* We are inside a sip: URI, so we don't need to worry about
* continuation lines. */
while (dptr <= limit &&
*dptr != '@' && *dptr != '\r' && *dptr != '\n') {
(*shift)++;
dptr++;
}

if (*dptr == '@') {
dptr++;
Expand Down

0 comments on commit 2b0deaf

Please sign in to comment.