]> The Tcpdump Group git mirrors - tcpdump/commit
EAP: Fixup the check for Code value.
authorDenis Ovsienko <[email protected]>
Sat, 18 Aug 2018 18:00:36 +0000 (19:00 +0100)
committerDenis Ovsienko <[email protected]>
Sat, 18 Aug 2018 18:00:36 +0000 (19:00 +0100)
commit6bda3d15156ec0cf40f82fc2e868c68c1cb05ff7
treeb500ac16a7468941cb25d0fe8ebe772216cf0810
parentc5e03b4a0f5b7a24bfb5f2aab4bb9ba175168a90
EAP: Fixup the check for Code value.

Code value 0 is not assigned, and the code block guarded by the if() is
specific to Request (1) and Response (2) only. This change prevents the
printer from decoding some invalid EAP messages as if they were valid.

[skip ci]
print-eap.c