git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@242
e88ac4ed-0b26-0410-9574-
a7f39faa03bf
} else
a4 = &((struct sockaddr_in *)addr)->sin_addr;
- for (entry = (*cur ? list_next(*cur) : list_first(confs)); entry; entry = list_next(entry)) {
+ for (entry = (cur && *cur ? list_next(*cur) : list_first(confs)); entry; entry = list_next(entry)) {
conf = (struct clsrvconf *)entry->data;
if (conf->type == type) {
if (conf->prefixlen == 255) {