summaryrefslogtreecommitdiff
path: root/usr/src/lib/libsmbfs/smb/ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libsmbfs/smb/ctx.c')
-rw-r--r--usr/src/lib/libsmbfs/smb/ctx.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr/src/lib/libsmbfs/smb/ctx.c b/usr/src/lib/libsmbfs/smb/ctx.c
index e68213b6ef..9455a92344 100644
--- a/usr/src/lib/libsmbfs/smb/ctx.c
+++ b/usr/src/lib/libsmbfs/smb/ctx.c
@@ -910,7 +910,7 @@ sectype_table[] = {
{ "ntlm", SMB_AT_NTLM1 },
{ "ntlm2", SMB_AT_NTLM2 },
{ "krb5", SMB_AT_KRB5 },
- { NULL, 0 },
+ { NULL, 0 },
};
int
smb_parse_secopts(struct smb_ctx *ctx, const char *arg)
@@ -1212,11 +1212,6 @@ smb_ctx_get_ssn(struct smb_ctx *ctx)
if ((ctx->ct_flags & SMBCF_RESOLVED) == 0)
return (EINVAL);
- if (ctx->ct_dev_fd < 0) {
- if ((err = smb_ctx_gethandle(ctx)))
- return (err);
- }
-
/*
* Check whether the driver already has a VC
* we can use. If so, we're done!