- We should return error = 0 and the upper processing would
return a zero length read. Otherwise we don't return the right error indication. Approved by: re@freebsd.org (gnn)
This commit is contained in:
parent
13a3fdf1fe
commit
7924093f84
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172437
@ -5009,7 +5009,8 @@ sctp_sorecvmsg(struct socket *so,
|
||||
so->so_error = 0;
|
||||
} else {
|
||||
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTPUTIL, ENOTCONN);
|
||||
error = ENOTCONN;
|
||||
/* indicate EOF */
|
||||
error = 0;
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user