Commit 26c1ec2f authored by Wei Yongjun's avatar Wei Yongjun Committed by David Teigland

dlm: fix error return code in sctp_accept_from_sock()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent aa9f1012
...@@ -879,7 +879,8 @@ static int sctp_accept_from_sock(struct connection *con) ...@@ -879,7 +879,8 @@ static int sctp_accept_from_sock(struct connection *con)
} }
make_sockaddr(&prim.ssp_addr, 0, &addr_len); 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; unsigned char *b = (unsigned char *)&prim.ssp_addr;
log_print("reject connect from unknown addr"); log_print("reject connect from unknown addr");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment