diff options
| author | 2006-06-25 23:41:15 -0700 | |
|---|---|---|
| committer | 2006-06-25 23:41:15 -0700 | |
| commit | 3ac90216abc7d39e694533aec2805efeb06bf8ac (patch) | |
| tree | c3374590eb318578896b41ca5af9d098275fc36f /net/tipc/socket.c | |
| parent | [TIPC]: Allow compilation when CONFIG_TIPC_DEBUG is not set. (diff) | |
| download | wireguard-linux-3ac90216abc7d39e694533aec2805efeb06bf8ac.tar.xz wireguard-linux-3ac90216abc7d39e694533aec2805efeb06bf8ac.zip | |
[TIPC] Fix for NULL pointer dereference
This fixes a bug spotted by the coverity checker, bug id #366. If
(mod(seqno - prev) != 1) we set buf to NULL, dereference it in the for
case, and set it to whatever value happes to be at adress 0+next, if it
happens to be non-zero, we even stay in the loop. It seems that the author
intended to break there.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Per Liden <per.liden@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions
