Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65167
b: refs/heads/master
c: a09c838
h: refs/heads/master
i:
  65165: 0d25f1b
  65163: 22ae673
  65159: 44481f4
  65151: 3036583
v: v3
  • Loading branch information
Vlad Yasevich authored and David S. Miller committed Sep 26, 2007
1 parent 93d421e commit 81e49bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca9938fea576ebbb8d8c4fbe8a5bcc937e49e1ca
refs/heads/master: a09c83847b664dcd67a72613374061c900afb799
8 changes: 8 additions & 0 deletions trunk/net/sctp/inqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue)
/* Force chunk->skb->data to chunk->chunk_end. */
skb_pull(chunk->skb,
chunk->chunk_end - chunk->skb->data);

/* Verify that we have at least chunk headers
* worth of buffer left.
*/
if (skb_headlen(chunk->skb) < sizeof(sctp_chunkhdr_t)) {
sctp_chunk_free(chunk);
chunk = queue->in_progress = NULL;
}
}
}

Expand Down

0 comments on commit 81e49bf

Please sign in to comment.