openssh/auth2.c: Add a missing include (canohost.h).
authorSascha Wildner <saw@online.de>
Sat, 16 Jan 2010 09:34:09 +0000 (10:34 +0100)
committerSascha Wildner <saw@online.de>
Sat, 16 Jan 2010 09:34:09 +0000 (10:34 +0100)
commit7835af9a267f30042e93fc116d24bfcdde584ac9
tree8f37cfde877accdd7c87bebd5dabb149c89823e1
parent2eefaf60f905c5f4d2e52bdf88a4d8c847be3d91
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:  <http://bugs.dragonflybsd.org/issue1649>
Pointed-out-by: dillon
crypto/openssh/auth2.c