Merge pull request #8976 from ton31337/fix/bgp_dest_unlock_node

bgpd: Unlock bgp_dest for bgp_distance_unset if distance does not match
This commit is contained in:
Patrick Ruddy 2021-07-06 09:03:40 +01:00 committed by GitHub
commit 9c8b904960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14377,6 +14377,7 @@ int bgp_distance_unset(uint8_t distance, const char *ip_str,
if (bdistance->distance != distance) {
snprintf(errmsg, errmsg_len,
"Distance does not match configured\n");
bgp_dest_unlock_node(dest);
return CMD_WARNING_CONFIG_FAILED;
}