diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-05 01:42:42 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-05 01:42:42 +0000 |
commit | 3fb5d00ffdaa93a99466858c667e2721cd2b39cb (patch) | |
tree | 403c6c6f634eb64f16624c1946a56cd70572ff7b /match.c | |
parent | 6ef9ec6b6ba6d52a16a4e63a75b042f321bcb6fa (diff) |
- 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 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: match.c,v 1.18 2002/02/28 19:36:28 stevesk Exp $"); | 38 | RCSID("$OpenBSD: match.c,v 1.19 2002/03/01 13:12:10 markus Exp $"); |
39 | 39 | ||
40 | #include "match.h" | 40 | #include "match.h" |
41 | #include "canohost.h" | ||
42 | #include "xmalloc.h" | 41 | #include "xmalloc.h" |
43 | 42 | ||
44 | /* | 43 | /* |
@@ -203,7 +202,7 @@ match_host_and_ip(const char *host, const char *ipaddr, | |||
203 | * match user, user@host_or_ip, user@host_or_ip_list against pattern | 202 | * match user, user@host_or_ip, user@host_or_ip_list against pattern |
204 | */ | 203 | */ |
205 | int | 204 | int |
206 | match_user(const char *user, int verify_reverse_mapping, | 205 | match_user(const char *user, const char *host, const char *ipaddr, |
207 | const char *pattern) | 206 | const char *pattern) |
208 | { | 207 | { |
209 | char *p, *pat; | 208 | char *p, *pat; |
@@ -217,9 +216,7 @@ match_user(const char *user, int verify_reverse_mapping, | |||
217 | *p++ = '\0'; | 216 | *p++ = '\0'; |
218 | 217 | ||
219 | if ((ret = match_pattern(user, pat)) == 1) | 218 | if ((ret = match_pattern(user, pat)) == 1) |
220 | ret = match_host_and_ip( | 219 | ret = match_host_and_ip(host, ipaddr, p); |
221 | get_canonical_hostname(verify_reverse_mapping), | ||
222 | get_remote_ipaddr(), p); | ||
223 | xfree(pat); | 220 | xfree(pat); |
224 | 221 | ||
225 | return ret; | 222 | return ret; |