]> andersk Git - openssh.git/blobdiff - servconf.c
- (dtucker) OpenBSD CVS Sync
[openssh.git] / servconf.c
index 94dff1fd62150ab331f1f17328192d85af142e64..07a201034ecd5c62068249e8dc6599fbe0ef8b57 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.180 2008/05/08 12:21:16 djm Exp $ */
+/* $OpenBSD: servconf.c,v 1.181 2008/06/10 03:57:27 djm Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
@@ -603,15 +603,17 @@ match_cfg_line(char **condition, int line, const char *user, const char *host,
                                debug("connection from %.100s matched 'Host "
                                    "%.100s' at line %d", host, arg, line);
                } else if (strcasecmp(attrib, "address") == 0) {
-                       if (!address) {
-                               result = 0;
-                               continue;
-                       }
-                       if (match_hostname(address, arg, len) != 1)
-                               result = 0;
-                       else
+                       switch (addr_match_list(address, arg)) {
+                       case 1:
                                debug("connection from %.100s matched 'Address "
                                    "%.100s' at line %d", address, arg, line);
+                               break;
+                       case 0:
+                               result = 0;
+                               break;
+                       case -1:
+                               return -1;
+                       }
                } else {
                        error("Unsupported Match attribute %s", attrib);
                        return -1;
This page took 0.034324 seconds and 4 git commands to generate.