diff options
author | venaas <venaas> | 2008-04-24 09:49:17 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-04-24 09:49:17 +0000 |
commit | 42810da913311d1a6ef7c9b3200923dcc6964b80 (patch) | |
tree | bf04afd185fe98ce7017fd3af8f5d360857da3a3 | |
parent | f2acf5d28cb876ffa72e0a184c6f8d50dbf69b59 (diff) |
fixed bug in find_conf
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@242 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r-- | radsecproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index 8011797..b6e634b 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -389,7 +389,7 @@ struct clsrvconf *find_conf(char type, struct sockaddr *addr, struct list *confs } 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) { |