diff options
author | green <green@FreeBSD.org> | 2000-02-25 13:35:33 +0800 |
---|---|---|
committer | green <green@FreeBSD.org> | 2000-02-25 13:35:33 +0800 |
commit | 638524c2d89e11a0715913d9820cb0edf876ae2f (patch) | |
tree | c7ca93fc17beb60ae00df0b18d2e6aca1cb09413 /security | |
parent | 16202bcdd8bcb3f42974c4d5a961fe88724f2f3c (diff) | |
download | freebsd-ports-gnome-638524c2d89e11a0715913d9820cb0edf876ae2f.tar.gz freebsd-ports-gnome-638524c2d89e11a0715913d9820cb0edf876ae2f.tar.zst freebsd-ports-gnome-638524c2d89e11a0715913d9820cb0edf876ae2f.zip |
Fix a coredump-y bug that crept in recently.
Diffstat (limited to 'security')
-rw-r--r-- | security/openssh/files/patch-an | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/openssh/files/patch-an b/security/openssh/files/patch-an index 9bbdf3348585..0a3e98efec74 100644 --- a/security/openssh/files/patch-an +++ b/security/openssh/files/patch-an @@ -39,7 +39,7 @@ +const size_t MAGIC_CONNECTIONS_SIZE = 1; + +static __inline int -+magic_hash(struct sockaddr *sa) { ++magic_hash(struct sockaddr_storage *sa) { + + return 0; +} @@ -89,7 +89,7 @@ + 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) { + /* |