Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David Teigland <teigland@redhat.com>
        }
 
        make_sockaddr(&prim.ssp_addr, 0, &addr_len);
-       if (addr_to_nodeid(&prim.ssp_addr, &nodeid)) {
+       ret = addr_to_nodeid(&prim.ssp_addr, &nodeid);
+       if (ret) {
                unsigned char *b = (unsigned char *)&prim.ssp_addr;
 
                log_print("reject connect from unknown addr");