summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorvenaas <venaas>2009-01-13 14:58:10 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2009-01-13 14:58:10 +0000
commit4bfc37e9e0e05acb0d2a26b773929f29091ba807 (patch)
treeebe2d674a9c57029a5eef254a2aac5c53f3a252b /util.c
parent944f77756de661c1fff4a6da00c62d56fb143efc (diff)
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
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 2 insertions, 0 deletions
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);