summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/ntlmssp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 66e7102aef..95a5dc9ccb 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -313,11 +313,11 @@ bool ntlmssp_is_anonymous(struct ntlmssp_state *ntlmssp_state)
{
const char *user = ntlmssp_state->user;
- if (ntlmssp_state->user == NULL) {
+ if (user == NULL) {
return true;
}
- if (strlen(ntlmssp_state->user) == 0) {
+ if (strlen(user) == 0) {
return true;
}