diff options
| author | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-05-25 20:36:10 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-05-25 20:38:35 -0400 |
| commit | 9eda95bde57355387f64065967bbd6e01cced05f (patch) | |
| tree | ca9f717b527b2065079efd10c3e71670b5c0183d | |
| parent | 5fd1f74742debed7f5bfe5d9416f363906917ec5 (diff) | |
pimd: Fix some static analysis
Using && instead of &.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | pimd/pim_register.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_register.c b/pimd/pim_register.c index 11717acf0c..406f91494a 100644 --- a/pimd/pim_register.c +++ b/pimd/pim_register.c @@ -202,7 +202,7 @@ pim_register_recv (struct interface *ifp, if (I_am_RP (group) && (dest_addr.s_addr == ((RP (group))->rpf_addr.s_addr))) { sentRegisterStop = 0; - if (*bits && PIM_REGISTER_BORDER_BIT) { + if (*bits & PIM_REGISTER_BORDER_BIT) { struct in_addr pimbr = pim_br_get_pmbr (source, group); if (PIM_DEBUG_PIM_PACKETS) zlog_debug("%s: Received Register message with Border bit set", __func__); @@ -243,7 +243,7 @@ pim_register_recv (struct interface *ifp, } if (!(upstream->sptbit == PIM_UPSTREAM_SPTBIT_TRUE) && - !(*bits && PIM_REGISTER_NR_BIT)) { + !(*bits & PIM_REGISTER_NR_BIT)) { //decapsulate and forward the iner packet to //inherited_olist(S,G,rpt) } |
