diff options
author | Damien Miller <djm@mindrot.org> | 2004-06-30 22:40:20 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-06-30 22:40:20 +1000 |
commit | 386c6a2c707b0c2a7b3370ba669881e72670ed14 (patch) | |
tree | 53fbb32729ed0da0fc66f5fbcf0da6315959ecf2 /sshd.c | |
parent | 26213e556b517bd01d4a1912afb7ef1f48f136f6 (diff) |
- avsm@cvs.openbsd.org 2004/06/26 20:07:16
[sshd.c]
initialise some fd variables to -1, djm@ ok
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -42,7 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "includes.h" | 44 | #include "includes.h" |
45 | RCSID("$OpenBSD: sshd.c,v 1.296 2004/06/25 18:43:36 djm Exp $"); | 45 | RCSID("$OpenBSD: sshd.c,v 1.297 2004/06/26 20:07:16 avsm Exp $"); |
46 | 46 | ||
47 | #include <openssl/dh.h> | 47 | #include <openssl/dh.h> |
48 | #include <openssl/bn.h> | 48 | #include <openssl/bn.h> |
@@ -874,7 +874,8 @@ main(int ac, char **av) | |||
874 | { | 874 | { |
875 | extern char *optarg; | 875 | extern char *optarg; |
876 | extern int optind; | 876 | extern int optind; |
877 | int opt, sock_in = 0, sock_out = 0, newsock, j, i, fdsetsz, on = 1; | 877 | int opt, j, i, fdsetsz, on = 1; |
878 | int sock_in = -1, sock_out = -1, newsock = -1; | ||
878 | pid_t pid; | 879 | pid_t pid; |
879 | socklen_t fromlen; | 880 | socklen_t fromlen; |
880 | fd_set *fdset; | 881 | fd_set *fdset; |