From 7835af9a267f30042e93fc116d24bfcdde584ac9 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sat, 16 Jan 2010 10:34:09 +0100 Subject: [PATCH] openssh/auth2.c: Add a missing include (canohost.h). canohost.h has the prototypes for get_canonical_hostname() and get_remote_ipaddr(), which are used in auth2.c and which both return const char * (64 bits on x86_64). Without the prototypes, int is assumed (32 bits). This caused sshd(8) to crash on x86_64 (i386 isn't affected due to the char pointer and int having the same width there). Dragonfly-bug: Pointed-out-by: dillon --- crypto/openssh/auth2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/openssh/auth2.c b/crypto/openssh/auth2.c index c0eec2f19f..eeddc48789 100644 --- a/crypto/openssh/auth2.c +++ b/crypto/openssh/auth2.c @@ -49,6 +49,7 @@ #include "dispatch.h" #include "pathnames.h" #include "buffer.h" +#include "canohost.h" #ifdef GSSAPI #include "ssh-gss.h" -- 2.11.4.GIT