Index: src/sbin/ifconfig/regdomain.c =================================================================== RCS file: /home/ncvs/src/sbin/ifconfig/regdomain.c,v retrieving revision 1.7 diff -u -r1.7 regdomain.c --- src/sbin/ifconfig/regdomain.c 7 Feb 2009 01:12:51 -0000 1.7 +++ src/sbin/ifconfig/regdomain.c 15 Nov 2009 20:13:20 -0000 @@ -694,8 +694,11 @@ len = strlen(name); LIST_FOREACH(cp, &rdp->countries, next) { - if (strcasecmp(cp->isoname, name) == 0 || - strncasecmp(cp->name, name, len) == 0) + if (strcasecmp(cp->isoname, name) == 0) + return cp; + } + LIST_FOREACH(cp, &rdp->countries, next) { + if (strncasecmp(cp->name, name, len) == 0) return cp; } return NULL;