From fefa1e9fc2abc311b3a53e29b871bc53b0a98b63 Mon Sep 17 00:00:00 2001 From: venaas Date: Wed, 19 Sep 2007 08:50:46 +0000 Subject: 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 --- list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'list.c') 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 */ -- cgit v1.2.3