From 5d9e5abc438fbed8835c3aadb47a8983920bbece Mon Sep 17 00:00:00 2001 From: Aomx <julian.cordes@gmail.com> Date: Thu, 24 Sep 2015 21:50:00 +0200 Subject: [PATCH] changed behaviour of accept, so that negative return values are checked. --- gtests/net/packetdrill/run_system_call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c index a60b0662..aef5ef0e 100644 --- a/gtests/net/packetdrill/run_system_call.c +++ b/gtests/net/packetdrill/run_system_call.c @@ -994,7 +994,7 @@ static int syscall_accept(struct state *state, struct syscall_spec *syscall, result = accept(live_fd, (struct sockaddr *)&live_addr, &live_addrlen); - if (end_syscall(state, syscall, CHECK_NON_NEGATIVE, result, error)) + if (end_syscall(state, syscall, CHECK_EXACT, result, error)) return STATUS_ERR; if (result >= 0) { -- GitLab