commit | f1791425cf0bcda43ab9a9a37df1ad3ccb1f6654 | [log] [tgz] |
---|---|---|
author | Antonio Quartulli <antonio@meshcoding.com> | Thu Jan 30 00:12:24 2014 +0100 |
committer | Antonio Quartulli <antonio@meshcoding.com> | Mon Feb 17 17:17:01 2014 +0100 |
tree | 168bc48d9894cdf33b3065ddc5982d44605b73c4 | |
parent | 91c2b1a9f680ff105369d49abc7e19ca7efb33e1 [diff] |
batman-adv: properly check pskb_may_pull return value pskb_may_pull() returns 1 on success and 0 in case of failure, therefore checking for the return value being negative does not make sense at all. This way if the function fails we will probably read beyond the current skb data buffer. Fix this by doing the proper check. Signed-off-by: Antonio Quartulli <antonio@meshcoding.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>