Skip to content
Snippets Groups Projects
Commit 5d9e5abc authored by Aomx's avatar Aomx
Browse files

changed behaviour of accept, so that negative return values are checked.

parent b96154da
No related branches found
No related tags found
No related merge requests found
...@@ -994,7 +994,7 @@ static int syscall_accept(struct state *state, struct syscall_spec *syscall, ...@@ -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); 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; return STATUS_ERR;
if (result >= 0) { if (result >= 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment