diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: session.c,v 1.265 2013/05/17 00:13:14 djm Exp $ */ | 1 | /* $OpenBSD: session.c,v 1.266 2013/07/19 07:37:48 markus 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 |
@@ -80,6 +80,7 @@ | |||
80 | #include "hostfile.h" | 80 | #include "hostfile.h" |
81 | #include "auth.h" | 81 | #include "auth.h" |
82 | #include "auth-options.h" | 82 | #include "auth-options.h" |
83 | #include "authfd.h" | ||
83 | #include "pathnames.h" | 84 | #include "pathnames.h" |
84 | #include "log.h" | 85 | #include "log.h" |
85 | #include "servconf.h" | 86 | #include "servconf.h" |
@@ -1589,6 +1590,13 @@ launch_login(struct passwd *pw, const char *hostname) | |||
1589 | static void | 1590 | static void |
1590 | child_close_fds(void) | 1591 | child_close_fds(void) |
1591 | { | 1592 | { |
1593 | extern AuthenticationConnection *auth_conn; | ||
1594 | |||
1595 | if (auth_conn) { | ||
1596 | ssh_close_authentication_connection(auth_conn); | ||
1597 | auth_conn = NULL; | ||
1598 | } | ||
1599 | |||
1592 | if (packet_get_connection_in() == packet_get_connection_out()) | 1600 | if (packet_get_connection_in() == packet_get_connection_out()) |
1593 | close(packet_get_connection_in()); | 1601 | close(packet_get_connection_in()); |
1594 | else { | 1602 | else { |