Skip to content
Commit c49b9f29 authored by Balazs Scheidler's avatar Balazs Scheidler Committed by David S. Miller
Browse files

tproxy: fixe a possible read from an invalid location in the socket match



TIME_WAIT sockets need to be handled specially, and the socket match
casted inet_timewait_sock instances to inet_sock, which are not
compatible.

Handle this special case by checking sk->sk_state.

Signed-off-by: default avatarBalazs Scheidler <bazsi@balabit.hu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0a0755c9
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