From: Duncaen Date: Wed, 30 Jan 2019 22:43:12 +0000 (+0100) Subject: pam: close timestamp fd in both both processes X-Git-Tag: v6.6~26 X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=commitdiff_plain;h=8b2a776ddd47b74bb814a00ea7af3cc970063db7 pam: close timestamp fd in both both processes --- diff --git a/pam.c b/pam.c index e0f17a5..c5a3001 100644 --- a/pam.c +++ b/pam.c @@ -323,8 +323,13 @@ pamauth(const char *user, const char *myname, int interactive, int nopass, int p } /* return as child */ - if (child == 0) + if (child == 0) { +#ifdef USE_TIMESTAMP + if (fd != -1) + close(fd); +#endif return; + } #ifdef USE_TIMESTAMP if (fd != -1) {