bgpd: null check (Coverity 1399274)

Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
paco 2018-06-15 20:09:55 +02:00
parent 6389e663e9
commit 4f9a63adba
No known key found for this signature in database
GPG Key ID: FD112A8C7E6A5E4A

View File

@ -812,7 +812,7 @@ static void update_subgroup_delete(struct update_subgroup *subgrp)
THREAD_TIMER_OFF(subgrp->t_coalesce);
sync_delete(subgrp);
if (BGP_DEBUG(update_groups, UPDATE_GROUPS))
if (BGP_DEBUG(update_groups, UPDATE_GROUPS) && subgrp->update_group)
zlog_debug("delete subgroup u%" PRIu64 ":s%" PRIu64,
subgrp->update_group->id, subgrp->id);