diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-08-03 10:08:04 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-08-03 10:08:04 +0000 |
commit | 7d3746f8a11471a3fbd594bb2fb66d587ecedf4c (patch) | |
tree | 17893cbfaa1e51a40db9f246c2e146d54c89c8d5 /usr.sbin/tcpdump | |
parent | 53dbc9a03eda12e8bcf58c49f67cd7dcde66c8f3 (diff) |
Fix a usage of logical and where binary and was intended.
Spotted by Mike Belopuhov. ok jsing@ deraadt@
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r-- | usr.sbin/tcpdump/print-gtp.c | 4 |
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); |