Skip to content

Commit

Permalink
src/net_com.c: move retval to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
angelskieglazki committed Apr 9, 2021
1 parent 531a772 commit 859ef3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 859ef3f

Please sign in to comment.