accept * for all addresses allowed

This commit is contained in:
Karsten Keil 2000-06-21 09:01:54 +00:00
parent 2d02528330
commit 6c5f63d017
1 changed files with 5 additions and 0 deletions

View File

@ -1079,7 +1079,12 @@ int auth_ip_addr(int unit,u_int32_t addr)
if (strcmp(ptr_word, "-") == 0)
break;
/* "*" means any addresses authorized */
if (strcmp(ptr_word, "*") == 0)
return 1;
accept = 1;
if (*ptr_word == '!') {
accept = 0;
++ptr_word;