From a6d101109bfb442cf0db6d8ebb5fb7c32cb16d7e Mon Sep 17 00:00:00 2001 From: Gordon Ross Date: Sun, 8 Apr 2018 10:09:12 -0400 Subject: 9472 Add smbutil discon command Reviewed by: Matt Barden Reviewed by: Evan Layton Reviewed by: Andy Fiddaman Reviewed by: Ken Mays Approved by: Dan McDonald --- usr/src/lib/libsmbfs/smb/ctx.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'usr/src/lib/libsmbfs/smb/ctx.c') 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! -- cgit v1.2.3