From 7eb932ba780c8773ddb1fb20495d5b5e748837ff Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Tue, 20 Aug 2024 19:30:33 +1000 Subject: [PATCH] plugins/winbind: Use fclose() to match with fdopen() Having done fdopen() on a couple of file descriptors, we then need to use fclose() to close them rather than close(). Signed-off-by: Paul Mackerras --- pppd/plugins/winbind.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pppd/plugins/winbind.c b/pppd/plugins/winbind.c index 7f930df..a3e5aa0 100644 --- a/pppd/plugins/winbind.c +++ b/pppd/plugins/winbind.c @@ -432,14 +432,14 @@ unsigned int run_ntlm_auth(const char *username, } /* parent */ - if (close(child_out[0]) == -1) { - close(child_in[1]); + if (fclose(pipe_out) == -1) { + fclose(pipe_in); notice("error closing pipe?!? for child OUT[0]"); return NOT_AUTHENTICATED; } /* parent */ - if (close(child_in[1]) == -1) { + if (fclose(pipe_in) == -1) { notice("error closing pipe?!? for child IN[1]"); return NOT_AUTHENTICATED; } -- 2.39.5