summaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-05 01:42:42 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-05 01:42:42 +0000
commit3fb5d00ffdaa93a99466858c667e2721cd2b39cb (patch)
tree403c6c6f634eb64f16624c1946a56cd70572ff7b /match.c
parent6ef9ec6b6ba6d52a16a4e63a75b042f321bcb6fa (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.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/match.c b/match.c
index e73ed2aa2..3ddb62730 100644
--- a/match.c
+++ b/match.c
@@ -35,10 +35,9 @@
35 */ 35 */
36 36
37#include "includes.h" 37#include "includes.h"
38RCSID("$OpenBSD: match.c,v 1.18 2002/02/28 19:36:28 stevesk Exp $"); 38RCSID("$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 */
205int 204int
206match_user(const char *user, int verify_reverse_mapping, 205match_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;