diff -r 3578977d29a3 -r f48cea237ec3 src/server/daemon/auth.c --- a/src/server/daemon/auth.c Tue Jun 25 22:18:59 2013 +0200 +++ b/src/server/daemon/auth.c Wed Jun 26 15:09:54 2013 +0200 @@ -137,7 +137,7 @@ cusr->authdb = strdup(authdb); cusr->password = strdup(password); - cusr->groups = calloc(numgroups, sizeof(sstr_t)); + cusr->groups = numgroups ? calloc(numgroups, sizeof(sstr_t)) : NULL; cusr->numgroups = numgroups; for(int i=0;igroups[i] = sstrdup(sstr(groups[i]));