mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 20:58:14 -04:00
Merge tag '6.5-rc6-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6
Pull smb client fix from Steve French: "A small SMB mount option fix, also for stable" * tag '6.5-rc6-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6: smb: client: fix null auth
This commit is contained in:
@@ -231,6 +231,8 @@ cifs_parse_security_flavors(struct fs_context *fc, char *value, struct smb3_fs_c
|
||||
break;
|
||||
case Opt_sec_none:
|
||||
ctx->nullauth = 1;
|
||||
kfree(ctx->username);
|
||||
ctx->username = NULL;
|
||||
break;
|
||||
default:
|
||||
cifs_errorf(fc, "bad security option: %s\n", value);
|
||||
@@ -1201,6 +1203,8 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
|
||||
case Opt_user:
|
||||
kfree(ctx->username);
|
||||
ctx->username = NULL;
|
||||
if (ctx->nullauth)
|
||||
break;
|
||||
if (strlen(param->string) == 0) {
|
||||
/* null user, ie. anonymous authentication */
|
||||
ctx->nullauth = 1;
|
||||
|
||||
Reference in New Issue
Block a user