summaryrefslogtreecommitdiff
path: root/list.c
diff options
context:
space:
mode:
authorvenaas <venaas>2007-09-19 08:50:46 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-09-19 08:50:46 +0000
commitfefa1e9fc2abc311b3a53e29b871bc53b0a98b63 (patch)
tree7181e2c741374d8b14d76e8f13d8c5192909321b /list.c
parentc0206480f4ca51770abbd138cddd919d5d7ec166 (diff)
allow multiple servers for a realm, so far only first will be used
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@161 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'list.c')
-rw-r--r--list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/list.c b/list.c
index 4e80300..6aacfbd 100644
--- a/list.c
+++ b/list.c
@@ -88,7 +88,7 @@ void list_removedata(struct list *list, void *data) {
/* returns first node */
struct list_node *list_first(struct list *list) {
- return list->first;
+ return list ? list->first : NULL;
}
/* returns the next node after the argument */