From 4bfc37e9e0e05acb0d2a26b773929f29091ba807 Mon Sep 17 00:00:00 2001 From: venaas Date: Tue, 13 Jan 2009 14:58:10 +0000 Subject: made it so it works with mix of dynamic and static servers for a realm git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@457 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.c') diff --git a/util.c b/util.c index ae02570..ed093df 100644 --- a/util.c +++ b/util.c @@ -19,6 +19,8 @@ char *stringcopy(const char *s, int len) { char *r; + if (!s) + return NULL; if (!len) len = strlen(s); r = malloc(len + 1); -- cgit v1.1