aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/netlink.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-17 15:04:16 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-17 22:24:17 -0600
commit0ab182b2e7c32ef9bd5db82fc683a7c03750a796 (patch)
tree93bd8f05892738b55a4ddcf02c5bd7978aac64ed /src/netlink.c
parentwireguard: queueing: account for skb->protocol==0 (diff)
downloadwireguard-linux-compat-0ab182b2e7c32ef9bd5db82fc683a7c03750a796.tar.xz
wireguard-linux-compat-0ab182b2e7c32ef9bd5db82fc683a7c03750a796.zip
receive: remove dead code from default packet type case
The situation in which we wind up hitting the default case here indicates a major bug in earlier parsing code. It is not a usual thing that should ever happen, which means a "friendly" message for it doesn't make sense. Rather, replace this with a WARN_ON, just like we do earlier in the file for a similar situation, so that somebody sends us a bug report and we can fix it. Reported-by: Fabian Freyer <fabianfreyer@radicallyopensecurity.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/netlink.c')
0 files changed, 0 insertions, 0 deletions