diff options
author | mouring <mouring> | 2002-03-05 01:42:42 +0000 |
---|---|---|
committer | mouring <mouring> | 2002-03-05 01:42:42 +0000 |
commit | 38c01409b582413ca8e8b21aae1df11710828359 (patch) | |
tree | d70abeed0868b8a10ef47625ee0e5b9d23f8c251 /match.c | |
parent | f51321ea268e649009238cb7c64aef3489f52044 (diff) | |
download | openssh-38c01409b582413ca8e8b21aae1df11710828359.tar.gz |
- markus@cvs.openbsd.org 2002/03/01 13:12:10
[auth.c match.c match.h]
undo the 'delay hostname lookup' change
match.c must not use compress.c (via canonhost.c/packet.c)
thanks to wilfried@
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -35,10 +35,9 @@ */ #include "includes.h" -RCSID("$OpenBSD: match.c,v 1.18 2002/02/28 19:36:28 stevesk Exp $"); +RCSID("$OpenBSD: match.c,v 1.19 2002/03/01 13:12:10 markus Exp $"); #include "match.h" -#include "canohost.h" #include "xmalloc.h" /* @@ -203,7 +202,7 @@ match_host_and_ip(const char *host, const char *ipaddr, * match user, user@host_or_ip, user@host_or_ip_list against pattern */ int -match_user(const char *user, int verify_reverse_mapping, +match_user(const char *user, const char *host, const char *ipaddr, const char *pattern) { char *p, *pat; @@ -217,9 +216,7 @@ match_user(const char *user, int verify_reverse_mapping, *p++ = '\0'; if ((ret = match_pattern(user, pat)) == 1) - ret = match_host_and_ip( - get_canonical_hostname(verify_reverse_mapping), - get_remote_ipaddr(), p); + ret = match_host_and_ip(host, ipaddr, p); xfree(pat); return ret; |