summaryrefslogtreecommitdiffstats
path: root/bgpd/rfapi
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-18 12:23:28 +0200
committerpaco <paco@voltanet.io>2018-06-18 16:07:43 +0200
commitc37a11ad7206344de898f09a156ee6682499dde6 (patch)
tree86204b2d7b35608368eb0f8308a734354bc7b6f7 /bgpd/rfapi
parentMerge pull request #2458 from pacovn/Coverity_1221437_Unchecked_return_value (diff)
downloadfrr-c37a11ad7206344de898f09a156ee6682499dde6.tar.xz
frr-c37a11ad7206344de898f09a156ee6682499dde6.zip
bgpd: null chk (Coverity 1433544 1433543 1433542)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'bgpd/rfapi')
-rw-r--r--bgpd/rfapi/rfapi_vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/rfapi/rfapi_vty.c b/bgpd/rfapi/rfapi_vty.c
index ccaa47209..18a979e53 100644
--- a/bgpd/rfapi/rfapi_vty.c
+++ b/bgpd/rfapi/rfapi_vty.c
@@ -1733,7 +1733,8 @@ void rfapiPrintMatchingDescriptors(struct vty *vty, struct prefix *vn_prefix,
int rfapiCliGetPrefixAddr(struct vty *vty, const char *str, struct prefix *p)
{
if (!str2prefix(str, p)) {
- vty_out(vty, "Malformed address \"%s\"%s", str, HVTYNL);
+ vty_out(vty, "Malformed address \"%s\"%s", str ? str : "null",
+ HVTYNL);
return CMD_WARNING;
}
switch (p->family) {