summaryrefslogtreecommitdiff
path: root/zebra/zebra_rnh.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-06-10 23:26:51 -0300
committerGitHub <noreply@github.com>2020-06-10 23:26:51 -0300
commit6a935ad753afbe4442398897f322ac58e0f2c1c8 (patch)
treeda5a9aedf6b032ea349863dd304c3806171bb2e7 /zebra/zebra_rnh.c
parenta99e4666b4cd10d35290002197c90d6e899ebc8c (diff)
parent00580dacb42e8e8c0ef152ba7615da63cde19c9b (diff)
Merge pull request #6559 from mjstapp/fix_zebra_rnh_sa
zebra: fix SA warning in zebra_rnh.c
Diffstat (limited to 'zebra/zebra_rnh.c')
-rw-r--r--zebra/zebra_rnh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c
index df6fabd1e1..20af96a557 100644
--- a/zebra/zebra_rnh.c
+++ b/zebra/zebra_rnh.c
@@ -1076,8 +1076,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;
}