summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2004-06-30 22:40:20 +1000
committerDamien Miller <djm@mindrot.org>2004-06-30 22:40:20 +1000
commit386c6a2c707b0c2a7b3370ba669881e72670ed14 (patch)
tree53fbb32729ed0da0fc66f5fbcf0da6315959ecf2 /sshd.c
parent26213e556b517bd01d4a1912afb7ef1f48f136f6 (diff)
downloadopenssh-git-386c6a2c707b0c2a7b3370ba669881e72670ed14.tar.gz
- 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index e5f54cbe..101419be 100644
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.296 2004/06/25 18:43:36 djm Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.297 2004/06/26 20:07:16 avsm Exp $");
#include <openssl/dh.h>
#include <openssl/bn.h>
@@ -874,7 +874,8 @@ main(int ac, char **av)
{
extern char *optarg;
extern int optind;
- int opt, sock_in = 0, sock_out = 0, newsock, j, i, fdsetsz, on = 1;
+ int opt, j, i, fdsetsz, on = 1;
+ int sock_in = -1, sock_out = -1, newsock = -1;
pid_t pid;
socklen_t fromlen;
fd_set *fdset;