Print this page
12513 SMB 3.1.1 support for server

@@ -19,10 +19,11 @@
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright 2019 Nexenta Systems, Inc.  All rights reserved.
+ * Copyright 2020 RackTop Systems, Inc.
  */
 
 #include <sys/atomic.h>
 #include <sys/synch.h>
 #include <sys/types.h>

@@ -855,10 +856,13 @@
         if (session->signing.mackey != NULL) {
                 kmem_free(session->signing.mackey,
                     session->signing.mackey_len);
         }
 
+        if (session->preauth_mech != NULL)
+                smb31_preauth_fini(session);
+
         session->s_magic = 0;
 
         smb_rwx_destroy(&session->s_lock);
         smb_net_txl_destructor(&session->s_txlst);