summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2000-02-25 05:22:14 +0000
committergreen <green@FreeBSD.org>2000-02-25 05:22:14 +0000
commit522f06fd77b5286e89af485a56da6b268be07e30 (patch)
tree683661714ed8be2c9b05fbb81ed18eecb9bf0e3d /crypto
parent08aeaabc772f4aa67ad2b03ef4691537fe580555 (diff)
downloadFreeBSD-src-522f06fd77b5286e89af485a56da6b268be07e30.zip
FreeBSD-src-522f06fd77b5286e89af485a56da6b268be07e30.tar.gz
Fix a bug that crawled in pretty recently (from the port). It made
sshd coredump :(
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/openssh/sshd.c b/crypto/openssh/sshd.c
index 03ccbf7..1dfea88 100644
--- a/crypto/openssh/sshd.c
+++ b/crypto/openssh/sshd.c
@@ -149,7 +149,7 @@ struct magic_connection {
const size_t MAGIC_CONNECTIONS_SIZE = 1;
static __inline int
-magic_hash(struct sockaddr *sa) {
+magic_hash(struct sockaddr_storage *sa) {
return 0;
}
@@ -723,7 +723,7 @@ main(int ac, char **av)
struct magic_connection *mc;
(void)gettimeofday(&connections_end, NULL);
- mc = &magic_connections[magic_hash(ai->ai_addr)];
+ mc = &magic_connections[magic_hash(&from)];
diff = timevaldiff(&mc->connections_begin, &connections_end);
if (diff.tv_sec >= options.connections_period) {
/*
OpenPOWER on IntegriCloud