diff options
author | Russ Allbery <rra@stanford.edu> | 2011-05-31 17:03:56 -0700 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2011-05-31 17:03:56 -0700 |
commit | 58458eb76ece4ed42bcd740982eb60a71660b75e (patch) | |
tree | f1be143de70d9a7fed22ae02c3460471012f1e0e /server | |
parent | 37ca658086527fbca38668921d303b9e35f9292a (diff) |
Fix uninitialized variable in remctld standalone server code
Fix uninitialized variable in the remctld standalone server code that
could cause all remote connections to fail and add a more complete
test suite for remote address handling.
Diffstat (limited to 'server')
-rw-r--r-- | server/remctld.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/remctld.c b/server/remctld.c index d31d0d3..5b26080 100644 --- a/server/remctld.c +++ b/server/remctld.c @@ -356,6 +356,7 @@ server_daemon(struct options *options, struct config *config, unlink(options->pid_path); exit(0); } + sslen = sizeof(ss); s = network_accept_any(fds, nfds, (struct sockaddr *) &ss, &sslen); if (s == INVALID_SOCKET) { if (errno != EINTR) |