Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264374
b: refs/heads/master
c: 7f81e25
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Daley authored and David S. Miller committed Oct 17, 2011
1 parent c0b4493 commit 47eeaa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: cb101ed2c3c7c0224d16953fe77bfb9d6c2cb9df
refs/heads/master: 7f81e25befdfb3272345a2e775f520e1d515fa20
3 changes: 2 additions & 1 deletion trunk/net/x25/af_x25.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ static struct sock *x25_find_listener(struct x25_address *addr,
* Found a listening socket, now check the incoming
* call user data vs this sockets call user data
*/
if(skb->len > 0 && x25_sk(s)->cudmatchlength > 0) {
if (x25_sk(s)->cudmatchlength > 0 &&
skb->len >= x25_sk(s)->cudmatchlength) {
if((memcmp(x25_sk(s)->calluserdata.cuddata,
skb->data,
x25_sk(s)->cudmatchlength)) == 0) {
Expand Down

0 comments on commit 47eeaa0

Please sign in to comment.