Commit 82b73ef9 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] x25 facilities parsing fix

From: Dipankar Sarma <dipankar@in.ibm.com>

Fix parsing of options for X.25 facilities
parent 54279dd8
......@@ -105,8 +105,8 @@ int x25_parse_facilities(struct sk_buff *skb,
printk(KERN_DEBUG "X.25: unknown facility %02X, "
"length %d, values %02X, %02X, %02X, %02X\n",
p[0], p[1], p[2], p[3], p[4], p[5]);
p += p[1] + 2;
len -= p[1] + 2;
p += p[1] + 2;
break;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment