diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2012-02-19 17:24:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2012-02-19 17:24:06 +0000 |
commit | 31c2395b1db1e9777f8bbe62bf2abbeafd4aa2f7 (patch) | |
tree | 54a389be90367128c72569a40740a36b51dfeb35 /usr.sbin/tcpdump/print-bgp.c | |
parent | 7b72ea803ca2ab2106971f2005356f1c52c690c5 (diff) |
Fix a classical bug (= vs ==). OK stsp@ miod@
Diffstat (limited to 'usr.sbin/tcpdump/print-bgp.c')
-rw-r--r-- | usr.sbin/tcpdump/print-bgp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-bgp.c b/usr.sbin/tcpdump/print-bgp.c index 01aa9ee026e..a276a00169e 100644 --- a/usr.sbin/tcpdump/print-bgp.c +++ b/usr.sbin/tcpdump/print-bgp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-bgp.c,v 1.14 2009/10/27 23:59:55 deraadt Exp $ */ +/* $OpenBSD: print-bgp.c,v 1.15 2012/02/19 17:24:05 claudio Exp $ */ /* * Copyright (C) 1999 WIDE Project. @@ -878,7 +878,7 @@ bgp_update_print(const u_char *dat, int length) while(i < 2 + len) { wpfx = decode_prefix4(&p[i], buf, sizeof(buf)); - if (wpfx = -1) { + if (wpfx == -1) { printf(" (illegal prefix length)"); break; } else if (wpfx == -2) |