diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-01-14 20:05:27 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-15 21:37:34 +1100 |
commit | 141efe49542f7156cdbc2e4cd0a041d8b1aab622 (patch) | |
tree | a9142350f2b8689f4d42548ca272ed577b32a881 /session.c | |
parent | 0088c57af302cda278bd26d8c3ae81d5b6f7c289 (diff) |
upstream commit
move authfd.c and its tentacles to the new buffer/key
API; ok markus@
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: session.c,v 1.275 2014/12/22 07:55:51 djm Exp $ */ | 1 | /* $OpenBSD: session.c,v 1.276 2015/01/14 20:05:27 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 |
@@ -1620,11 +1620,11 @@ launch_login(struct passwd *pw, const char *hostname) | |||
1620 | static void | 1620 | static void |
1621 | child_close_fds(void) | 1621 | child_close_fds(void) |
1622 | { | 1622 | { |
1623 | extern AuthenticationConnection *auth_conn; | 1623 | extern int auth_sock; |
1624 | 1624 | ||
1625 | if (auth_conn) { | 1625 | if (auth_sock != -1) { |
1626 | ssh_close_authentication_connection(auth_conn); | 1626 | close(auth_sock); |
1627 | auth_conn = NULL; | 1627 | auth_sock = -1; |
1628 | } | 1628 | } |
1629 | 1629 | ||
1630 | if (packet_get_connection_in() == packet_get_connection_out()) | 1630 | if (packet_get_connection_in() == packet_get_connection_out()) |