Skip to content
Snippets Groups Projects
Commit 2ffbfa4e authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Fix CID 187693.

parent 50ec40df
No related branches found
No related tags found
No related merge requests found
......@@ -2048,7 +2048,9 @@ static int syscall_socket(struct state *state, struct syscall_spec *syscall,
result = socket(domain, type, protocol);
if (end_syscall(state, syscall, CHECK_FD, result, error)) {
close(result);
if (result >= 0) {
close(result);
}
return STATUS_ERR;
}
......
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