summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2013-10-25 00:28:16 -0400
committerGravatar Karl Ramm <kcr@1ts.org>2013-10-25 00:28:16 -0400
commit8d4bbee81c620ed0efb69305eb68fb67057bc6d9 (patch)
tree3cfc16aa5942c976b39611bc6e7b067d54347f70
parent70e8a0e0f084cdfd50e234d8d80fabaeb39c68c6 (diff)
Unauth'd messages, ODDLY, do not have a sender for the acl library
-rw-r--r--server/acl_files.c2
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)