=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth2-hostbased.c,v retrieving revision 1.2.8.2 retrieving revision 1.3 diff -u -r1.2.8.2 -r1.3 --- src/usr.bin/ssh/auth2-hostbased.c 2004/03/04 18:18:15 1.2.8.2 +++ src/usr.bin/ssh/auth2-hostbased.c 2003/04/08 20:21:28 1.3 @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth2-hostbased.c,v 1.2.8.2 2004/03/04 18:18:15 brad Exp $"); +RCSID("$OpenBSD: auth2-hostbased.c,v 1.3 2003/04/08 20:21:28 itojun Exp $"); #include "ssh2.h" #include "xmalloc.h" @@ -42,7 +42,7 @@ /* import */ extern ServerOptions options; extern u_char *session_id2; -extern u_int session_id2_len; +extern int session_id2_len; static int userauth_hostbased(Authctxt *authctxt) @@ -114,7 +114,7 @@ buffer_len(&b))) == 1) authenticated = 1; - buffer_free(&b); + buffer_clear(&b); done: debug2("userauth_hostbased: authenticated %d", authenticated); if (key != NULL) @@ -136,7 +136,7 @@ HostStatus host_status; int len; - resolvedname = get_canonical_hostname(options.use_dns); + resolvedname = get_canonical_hostname(options.verify_reverse_mapping); ipaddr = get_remote_ipaddr(); debug2("userauth_hostbased: chost %s resolvedname %s ipaddr %s",