=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/hostfile.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- src/usr.bin/ssh/hostfile.c 2000/12/19 23:17:56 1.22 +++ src/usr.bin/ssh/hostfile.c 2000/12/21 15:10:16 1.23 @@ -36,7 +36,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: hostfile.c,v 1.22 2000/12/19 23:17:56 markus Exp $"); +RCSID("$OpenBSD: hostfile.c,v 1.23 2000/12/21 15:10:16 markus Exp $"); #include "packet.h" #include "match.h" @@ -107,7 +107,8 @@ */ HostStatus -check_host_in_hostfile(const char *filename, const char *host, Key *key, Key *found) +check_host_in_hostfile(const char *filename, const char *host, Key *key, + Key *found, int *numret) { FILE *f; char line[8192]; @@ -163,6 +164,9 @@ continue; if (!hostfile_check_key(kbits, found, host, filename, linenum)) continue; + + if (numret != NULL) + *numret = linenum; /* Check if the current key is the same as the given key. */ if (key_equal(key, found)) {