]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix the sense of a test.
authorguy <guy>
Sun, 13 Nov 2005 20:03:21 +0000 (20:03 +0000)
committerguy <guy>
Sun, 13 Nov 2005 20:03:21 +0000 (20:03 +0000)
print-802_11.c

index a6779a5a5df74440b26aceebd50353055ef9ea58..196d25c12d392788695e98a7b767177cf5f77d75 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-802_11.c,v 1.39 2005-11-13 19:59:19 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-802_11.c,v 1.40 2005-11-13 20:03:21 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -196,7 +196,7 @@ parse_elements(struct mgmt_body_t *pbody, const u_char *p, int offset)
                                return;
                        memcpy(&pbody->challenge, p + offset, 2);
                        offset += 2;
-                       if (pbody->challenge.length == 0) {
+                       if (pbody->challenge.length != 0) {
                                if (pbody->challenge.length > 253)
                                        return;
                                if (!TTEST2(*(p + offset), pbody->challenge.length))