diff options
-rw-r--r-- | server/acl_files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/acl_files.c b/server/acl_files.c index a2da446..78404e7 100644 --- a/server/acl_files.c +++ b/server/acl_files.c @@ -372,7 +372,7 @@ acl_check_internal(char *acl, char *princ, struct sockaddr_in *who) } int acl_check(char *acl, char *name, struct sockaddr_in *who) { - char *pname = strdup(name); + char *pname = strdup(name != NULL ? name : ""); int result; if (pname == NULL) |