nwrap_files_cache_reload: add close for ebadf fd just incase
authorTJ Miller <millert@us.ibm.com>
Wed, 28 Oct 2020 20:55:59 +0000 (13:55 -0700)
committerAndreas 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

index 1630d49298cf30ea3db0e5a69d7c91b3a8e088ca..877f6d1897d315b7754b015fb8d6afbd09343534 100644 (file)
@@ -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;