git.samba.org
/
nss_wrapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d2b47f
)
nwrap_files_cache_reload: add close for ebadf fd just incase
author
TJ Miller
<millert@us.ibm.com>
Wed, 28 Oct 2020 20:55:59 +0000
(13:55 -0700)
committer
Andreas Schneider
<asn@samba.org>
Wed, 4 Nov 2020 15:35:54 +0000
(16:35 +0100)
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
src/nss_wrapper.c
patch
|
blob
|
history
diff --git
a/src/nss_wrapper.c
b/src/nss_wrapper.c
index 1630d49298cf30ea3db0e5a69d7c91b3a8e088ca..877f6d1897d315b7754b015fb8d6afbd09343534 100644
(file)
--- a/
src/nss_wrapper.c
+++ b/
src/nss_wrapper.c
@@
-2138,6
+2138,7
@@
reopen:
strerror(errno));
retried = true;
memset(&nwrap->st, 0, sizeof(nwrap->st));
+ fclose(nwrap->fp);
nwrap->fp = NULL;
nwrap->fd = -1;
goto reopen;