Skip to content
Snippets Groups Projects
Commit 4a6b0228 authored by Namjae Jeon's avatar Namjae Jeon
Browse files

cifsd: simplify error handling in ksmbd_auth_ntlm()


simplify error handling in ksmbd_auth_ntlm().

Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarNamjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 7e38ea25
Branches
Tags
No related merge requests found
......@@ -351,12 +351,11 @@ int ksmbd_auth_ntlm(struct ksmbd_session *sess, char *pw_buf)
if (strncmp(pw_buf, key, CIFS_AUTH_RESP_SIZE) != 0) {
ksmbd_debug(AUTH, "ntlmv1 authentication failed\n");
rc = -EINVAL;
} else {
ksmbd_debug(AUTH, "ntlmv1 authentication pass\n");
return -EINVAL;
}
return rc;
ksmbd_debug(AUTH, "ntlmv1 authentication pass\n");
return 0;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment