Merge pull request #10026 from idryzhov/bfd-peer-str-coverity

bfdd: fix coverity warnings
This commit is contained in:
Donald Sharp 2021-11-10 19:01:57 -05:00 committed by GitHub
commit 933a8c8a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -579,7 +579,7 @@ _find_peer_or_error(struct vty *vty, int argc, struct cmd_token **argv,
pl = pl_find(label);
if (pl)
bs = pl->pl_bs;
} else {
} else if (peer_str) {
strtosa(peer_str, &psa);
if (local_str) {
strtosa(local_str, &lsa);
@ -599,6 +599,9 @@ _find_peer_or_error(struct vty *vty, int argc, struct cmd_token **argv,
}
bs = bs_peer_find(&bpc);
} else {
vty_out(vty, "%% Invalid arguments\n");
return NULL;
}
/* Find peer data. */