diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/credentials.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/credentials.c b/source4/lib/credentials.c index b997e6ae53..e98e261b05 100644 --- a/source4/lib/credentials.c +++ b/source4/lib/credentials.c @@ -392,7 +392,7 @@ BOOL cli_credentials_is_anonymous(struct cli_credentials *credentials) { const char *username = cli_credentials_get_username(credentials); - if (!username[0]) + if (!username || !username[0]) return True; return False; |