summaryrefslogtreecommitdiffstats
path: root/source4/lib/credentials.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-03-23 01:42:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:13 -0500
commit4a095be54184230de8ee658399dd8c82c4401d64 (patch)
treee5f77dff741b352c370c53d4b3e4c8c4f4ffa316 /source4/lib/credentials.c
parent79f6bcd5ae1711075ce0e75392ce83a72766698e (diff)
downloadsamba-4a095be54184230de8ee658399dd8c82c4401d64.tar.gz
samba-4a095be54184230de8ee658399dd8c82c4401d64.tar.xz
samba-4a095be54184230de8ee658399dd8c82c4401d64.zip
r5989: Display authentication information (list of available auth protocols
+ principal names per endpoint) to gepdump. Still need to fix memory management in the GTK+ utilities... (This used to be commit b48a0af0b0fbf1234627ec785699896a44b23e75)
Diffstat (limited to 'source4/lib/credentials.c')
-rw-r--r--source4/lib/credentials.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/credentials.c b/source4/lib/credentials.c
index b997e6ae532..e98e261b051 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;