From 5648db306239bd78ec668cf7a73ca3435a06b9c6 Mon Sep 17 00:00:00 2001 From: mouring Date: Wed, 27 Mar 2002 17:45:43 +0000 Subject: monitor_allowed_key() returns int instead of pointer. ok markus@ --- usr.bin/ssh/monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ssh') diff --git a/usr.bin/ssh/monitor.c b/usr.bin/ssh/monitor.c index 06e536d8da5..737209daf36 100644 --- a/usr.bin/ssh/monitor.c +++ b/usr.bin/ssh/monitor.c @@ -25,7 +25,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: monitor.c,v 1.7 2002/03/24 23:20:00 stevesk Exp $"); +RCSID("$OpenBSD: monitor.c,v 1.8 2002/03/27 17:45:42 mouring Exp $"); #include @@ -864,7 +864,7 @@ mm_answer_keyverify(int socket, Buffer *m) data = buffer_get_string(m, &datalen); if (hostbased_cuser == NULL || hostbased_chost == NULL || - monitor_allowed_key(blob, bloblen) == NULL) + !monitor_allowed_key(blob, bloblen)) fatal("%s: bad key, not previously allowed", __FUNCTION__); key = key_from_blob(blob, bloblen); -- cgit v1.2.3