diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-17 15:04:16 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-17 22:24:17 -0600 |
commit | 0ab182b2e7c32ef9bd5db82fc683a7c03750a796 (patch) | |
tree | 93bd8f05892738b55a4ddcf02c5bd7978aac64ed /src/netlink.c | |
parent | b9d186323ddbc4cbd793ef49002b4a4107d6a8aa (diff) |
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