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/sshconnect.c | |
parent | 77e53bad3c551494891f8d12464b57eddc79664b (diff) |
use SHUT_* symbols
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r-- | usr.bin/ssh/sshconnect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c index bbb1e00abb6..5159da41ced 100644 --- a/usr.bin/ssh/sshconnect.c +++ b/usr.bin/ssh/sshconnect.c @@ -15,7 +15,7 @@ login (authentication) dialog. */ #include "includes.h" -RCSID("$Id: sshconnect.c,v 1.10 1999/09/30 17:08:52 deraadt Exp $"); +RCSID("$Id: sshconnect.c,v 1.11 1999/10/03 19:22:39 deraadt Exp $"); #include <ssl/bn.h> #include "xmalloc.h" @@ -247,7 +247,7 @@ int ssh_connect(const char *host, int port, int connection_attempts, restore_uid(); /* Destroy the failed socket. */ - shutdown(sock, 2); + shutdown(sock, SHUT_RDWR); close(sock); } else @@ -295,7 +295,7 @@ int ssh_connect(const char *host, int port, int connection_attempts, /* Close the failed socket; there appear to be some problems when reusing a socket for which connect() has already returned an error. */ - shutdown(sock, 2); + shutdown(sock, SHUT_RDWR); close(sock); } if (hp->h_addr_list[i]) |