diff options
| author | Russ White <russ@riw.us> | 2018-06-19 07:18:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-19 07:18:13 -0400 |
| commit | 9635a16a363078df3765e15a752553f7fe283edc (patch) | |
| tree | 47af1073fc302531cd15432516e4bfd73e8fbd2f | |
| parent | 5e51ae98167cba8252a1424d960caf5bccb52526 (diff) | |
| parent | d3e51db0690e0ca7c78c3a4c263ec2fb35801744 (diff) | |
Merge pull request #2483 from pacovn/clang_scan_bgpd_updgrp_deref
bgpd: null check (Clang scan-build)
| -rw-r--r-- | bgpd/bgp_updgrp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_updgrp.c b/bgpd/bgp_updgrp.c index c607c4577d..6a65f982e0 100644 --- a/bgpd/bgp_updgrp.c +++ b/bgpd/bgp_updgrp.c @@ -905,7 +905,7 @@ static void update_subgroup_add_peer(struct update_subgroup *subgrp, static void update_subgroup_remove_peer_internal(struct update_subgroup *subgrp, struct peer_af *paf) { - assert(subgrp && paf); + assert(subgrp && paf && subgrp->update_group); if (bgp_debug_peer_updout_enabled(paf->peer->host)) { UPDGRP_PEER_DBG_DIS(subgrp->update_group); |
