aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bgp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-05-21 21:44:28 +0000
committerGuy Harris <guy@alum.mit.edu>2002-05-21 21:44:28 +0000
commit2667dfed9a0e5a506fdfadaf380efbf9dcf5ef85 (patch)
tree7bf9a6ab9a4be8ab52e676a5409fb6e9e062c64d /packet-bgp.c
parenta39b66edaf05da826d7b8f2067a779fe9b84a3c8 (diff)
From Hannes Gredler: fix misuse of "&&" when "&" was intended.
svn path=/trunk/; revision=5517
Diffstat (limited to 'packet-bgp.c')
-rw-r--r--packet-bgp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-bgp.c b/packet-bgp.c
index a43726236b..e925f592e0 100644
--- a/packet-bgp.c
+++ b/packet-bgp.c
@@ -2,7 +2,7 @@
* Routines for BGP packet dissection.
* Copyright 1999, Jun-ichiro itojun Hagino <itojun@itojun.org>
*
- * $Id: packet-bgp.c,v 1.57 2002/05/20 01:01:11 guy Exp $
+ * $Id: packet-bgp.c,v 1.58 2002/05/21 21:44:28 guy Exp $
*
* Supports:
* RFC1771 A Border Gateway Protocol 4 (BGP-4)
@@ -313,7 +313,7 @@ decode_MPLS_stack(tvbuff_t *tvb, gint offset, char *buf, int buflen)
buf[0] = '\0' ;
- while ((label_entry && 0x000001) == 0) {
+ while ((label_entry & 0x000001) == 0) {
label_entry = tvb_get_ntoh24(tvb, index) ;
@@ -322,7 +322,7 @@ decode_MPLS_stack(tvbuff_t *tvb, gint offset, char *buf, int buflen)
snprintf(buf, buflen, "0 (withdrawn)");
return (1);
}
- snprintf(buf, buflen,"%s%u%s", buf, (label_entry >> 4), ((label_entry && 0x000001) == 0) ? "," : " (bottom)");
+ snprintf(buf, buflen,"%s%u%s", buf, (label_entry >> 4), ((label_entry & 0x000001) == 0) ? "," : " (bottom)");
index += 3 ;
}