From 34d9095cbf39284db17950aa7317d6a3a63e6a19 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 3 Aug 2010 10:08:03 +0000 Subject: [PATCH] Fix a usage of logical and where binary and was intended. Spotted by Mike Belopuhov. ok jsing@ deraadt@ --- usr.sbin/tcpdump/print-gtp.c | 4 ++-- 1 file 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 * @@ -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); -- 2.20.1