diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-10-03 19:22:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-10-03 19:22:40 +0000 |
commit | 934bbe968364c24452edd2fc51324129a658b0df (patch) | |
tree | c0eaff1a0c73b9ad857023e1a0d0bf30703dd180 /usr.bin/ssh/authfd.c | |
parent | 77e53bad3c551494891f8d12464b57eddc79664b (diff) |
use SHUT_* symbols
Diffstat (limited to 'usr.bin/ssh/authfd.c')
-rw-r--r-- | usr.bin/ssh/authfd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/authfd.c b/usr.bin/ssh/authfd.c index 1bdf69cb720..3b112ee631f 100644 --- a/usr.bin/ssh/authfd.c +++ b/usr.bin/ssh/authfd.c @@ -14,7 +14,7 @@ Functions for connecting the local authentication agent. */ #include "includes.h" -RCSID("$Id: authfd.c,v 1.4 1999/09/30 08:34:24 deraadt Exp $"); +RCSID("$Id: authfd.c,v 1.5 1999/10/03 19:22:38 deraadt Exp $"); #include "ssh.h" #include "rsa.h" @@ -134,7 +134,7 @@ int ssh_get_authentication_connection_fd() PUT_16BIT(msg + 1, port); if (send(authfd, msg, 3, 0) < 0) { - shutdown(listen_sock, 2); + shutdown(listen_sock, SHUT_RDWR); close(listen_sock); ssh_close_authentication_socket(authfd); return -1; @@ -154,7 +154,7 @@ int ssh_get_authentication_connection_fd() /* Close the socket we used for listening. It is no longer needed. (The authentication fd and the new connection still remain open.) */ - shutdown(listen_sock, 2); + shutdown(listen_sock, SHUT_RDWR); close(listen_sock); ssh_close_authentication_socket(authfd); @@ -664,7 +664,7 @@ int ssh_remove_all_identities(AuthenticationConnection *auth) void ssh_close_authentication(AuthenticationConnection *auth) { /* Close the connection. */ - shutdown(auth->fd, 2); + shutdown(auth->fd, SHUT_RDWR); close(auth->fd); /* Free the buffers. */ |