From 9aad185151097c393acbb997e27c7b074cde012c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 21 Oct 2018 11:45:26 +0200 Subject: hnbgw_tx_hnb_register_rej(): Missing return statement Change-Id: I0bdee8ede9ffdc16c16a4f5723acb7b4bceb2158 Fixes: Coverity CID#188869 --- src/hnbgw_hnbap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c index 2a19dda..1d50d4d 100644 --- a/src/hnbgw_hnbap.c +++ b/src/hnbgw_hnbap.c @@ -85,7 +85,10 @@ static int hnbgw_tx_hnb_register_rej(struct hnb_context *ctx) } else { /* The message was not queued. Destroy the connection right away. */ hnb_context_release(ctx); + return rc; } + + return 0; } static int hnbgw_tx_hnb_register_acc(struct hnb_context *ctx) -- cgit v1.2.3