summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2010-08-03 10:08:03 +0000
committerjsg <jsg@openbsd.org>2010-08-03 10:08:03 +0000
commit34d9095cbf39284db17950aa7317d6a3a63e6a19 (patch)
tree4b9d9b527d6c533d36a49f72774e4304c5fc3156
parentFix a leak in ypldap. Found (and correct diff) from (diff)
downloadwireguard-openbsd-34d9095cbf39284db17950aa7317d6a3a63e6a19.tar.xz
wireguard-openbsd-34d9095cbf39284db17950aa7317d6a3a63e6a19.zip
Fix a usage of logical and where binary and was intended.
Spotted by Mike Belopuhov. ok jsing@ deraadt@
-rw-r--r--usr.sbin/tcpdump/print-gtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-gtp.c b/usr.sbin/tcpdump/print-gtp.c
index 703e52c7339..a08349dd15e 100644
--- a/usr.sbin/tcpdump/print-gtp.c
+++ b/usr.sbin/tcpdump/print-gtp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-gtp.c,v 1.1 2009/11/04 09:43:11 jsing Exp $ */
+/* $OpenBSD: print-gtp.c,v 1.2 2010/08/03 10:08:03 jsg Exp $ */
/*
* Copyright (c) 2009 Joel Sing <jsing@openbsd.org>
*
@@ -860,7 +860,7 @@ gtp_v1_print(const u_char *cp, u_int length, u_short sport, u_short dport)
u_char *p = (u_char *)cp;
TCHECK(gh->flags);
- if ((gh->flags && GTPV1_HDR_PROTO_TYPE) == 0) {
+ if ((gh->flags & GTPV1_HDR_PROTO_TYPE) == 0) {
printf(" GTPv1'");
gtp_proto = GTP_V1_PRIME_PROTO;
gtp_v1_print_prime(p, (struct gtp_v1_prime_hdr *)gh);