git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: Fix CID 1306765 Unchecked return value from library
[samba.git]
/
lib
/
async_req
/
async_sock.c
diff --git
a/lib/async_req/async_sock.c
b/lib/async_req/async_sock.c
index 89272ee50025196b7e0ff6684b79c76e5cbec9c4..e90f4e6e26a3a7228fe3f7047399b9d467f6d97a 100644
(file)
--- a/
lib/async_req/async_sock.c
+++ b/
lib/async_req/async_sock.c
@@
-156,7
+156,13
@@
static void async_connect_cleanup(struct tevent_req *req,
TALLOC_FREE(state->fde);
if (state->fd != -1) {
- fcntl(state->fd, F_SETFL, state->old_sockflags);
+ int ret;
+
+ ret = fcntl(state->fd, F_SETFL, state->old_sockflags);
+ if (ret == -1) {
+ abort();
+ }
+
state->fd = -1;
}
}