diff --git a/[refs] b/[refs] index e18d3291500a..a524128ebfd3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cb101ed2c3c7c0224d16953fe77bfb9d6c2cb9df +refs/heads/master: 7f81e25befdfb3272345a2e775f520e1d515fa20 diff --git a/trunk/net/x25/af_x25.c b/trunk/net/x25/af_x25.c index aa567b09ea9a..5f03e4ea65bf 100644 --- a/trunk/net/x25/af_x25.c +++ b/trunk/net/x25/af_x25.c @@ -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) {