]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: fix SA warning in zebra_rnh.c
authorMark Stapp <mjs@voltanet.io>
Wed, 10 Jun 2020 18:57:30 +0000 (14:57 -0400)
committerMark Stapp <mjs@voltanet.io>
Wed, 10 Jun 2020 18:57:30 +0000 (14:57 -0400)
Fix an SA warning... that I introduced while resolving
a different SA warning.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_rnh.c

index e94a445098a059f75bdc6f9f1b1d27d1874eec1c..9f7965d8798bf02c35e2a697c76e8cbb3ad2ff97 100644 (file)
@@ -1069,8 +1069,8 @@ static int send_client(struct rnh *rnh, struct zserv *client,
        return zserv_send_message(client, s);
 
 failure:
-       if (s)
-               stream_free(s);
+
+       stream_free(s);
        return -1;
 }