diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: session.c,v 1.320 2020/06/26 04:45:11 dtucker Exp $ */ | 1 | /* $OpenBSD: session.c,v 1.321 2020/07/03 06:46:41 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
4 | * All rights reserved | 4 | * All rights reserved |
@@ -1501,6 +1501,9 @@ child_close_fds(struct ssh *ssh) | |||
1501 | */ | 1501 | */ |
1502 | endpwent(); | 1502 | endpwent(); |
1503 | 1503 | ||
1504 | /* Stop directing logs to a high-numbered fd before we close it */ | ||
1505 | log_redirect_stderr_to(NULL); | ||
1506 | |||
1504 | /* | 1507 | /* |
1505 | * Close any extra open file descriptors so that we don't have them | 1508 | * Close any extra open file descriptors so that we don't have them |
1506 | * hanging around in clients. Note that we want to do this after | 1509 | * hanging around in clients. Note that we want to do this after |