Signed-off-by: Jianwen Ji <jijianwen@xxxxxxxxx> --- src/apps/sctp_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/sctp_test.c b/src/apps/sctp_test.c index 4aa2d13..cd7654b 100644 --- a/src/apps/sctp_test.c +++ b/src/apps/sctp_test.c @@ -870,7 +870,7 @@ int receive_r(int sk, int once) DEBUG_PRINT(DEBUG_MIN, "\trecvmsg(sk=%d) ", sk); error = recvmsg(recvsk, &inmessage, MSG_WAITALL); - if (error < 0 && error != EAGAIN) { + if (error < 0 && errno != EAGAIN) { if (errno == ENOTCONN && socket_type == SOCK_STREAM && role == SERVER) { printf("No association is present now!!\n"); -- 2.9.5