From 859ef3feae7f028dd0ae921761e9f7b6fd3ceba1 Mon Sep 17 00:00:00 2001 From: max Date: Fri, 9 Apr 2021 17:52:54 +0300 Subject: [PATCH] src/net_com.c: move retval to the right place --- src/net_com.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_com.c b/src/net_com.c index c0442b3f..39f36f9b 100644 --- a/src/net_com.c +++ b/src/net_com.c @@ -747,10 +747,10 @@ static int cmd_host_info_answer_cb(ksnCommandClass *kco, ksnCorePacketData *rd) "process CMD_HOST_INFO_ANSWER (cmd = %u) command, from %s (%s:%d), arp-addr %s:%d, type: %s\n", rd->cmd, rd->from, rd->addr, rd->port, rd->arp->data.addr, rd->arp->data.port, rd->arp->type); #endif + retval = 1; } else { printf("Peername %s, Type: %s\n", rd->from, rd->arp->type); } - retval = 1; } return retval; // Command send to user level