r5989: Display authentication information (list of available auth protocols
[samba.git] / source4 / lib / credentials.c
index b997e6ae5322521263ac43cceee6efc206dcacce..e98e261b05139300fab402c6488a4e3ce9bfe580 100644 (file)
@@ -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;