}else/* BB need to more gracefully handle the rare negative session
}else/* BB need to more gracefully handle the rare negative session
response case because response will be still outstanding */
response case because response will be still outstanding */
cERROR(1,("There are still active MIDs in queue and we are exiting but we can not delete mid_q_entries or TCP_Server_Info structure due to pending requests MEMORY LEAK!!"));/* BB wake up waitors, and/or wait and/or free stale mids and try again? BB */
cERROR(1,("Active MIDs in queue while exiting - can not delete mid_q_entries or TCP_Server_Info structure due to pending requests MEMORY LEAK!!"));
/* BB Need to fix bug in error path above - perhaps wait until smb requests
/* BB wake up waitors, and/or wait and/or free stale mids and try again? BB */
/* BB Need to fix bug in error path above - perhaps wait until smb requests
time out and then free the tcp per server struct BB */
time out and then free the tcp per server struct BB */
read_unlock(&GlobalSMBSeslock);
read_unlock(&GlobalSMBSeslock);
...
@@ -672,6 +673,8 @@ int setup_session(unsigned int xid, struct cifsSesInfo *pSesInfo, struct nls_tab
...
@@ -672,6 +673,8 @@ int setup_session(unsigned int xid, struct cifsSesInfo *pSesInfo, struct nls_tab
SMBNTencrypt(pSesInfo->password_with_pad,
SMBNTencrypt(pSesInfo->password_with_pad,
pSesInfo->server->cryptKey,ntlm_session_key);
pSesInfo->server->cryptKey,ntlm_session_key);
/* BB add call to save MAC key here BB */
/* for better security the weaker lanman hash not sent
/* for better security the weaker lanman hash not sent
in AuthSessSetup so why bother calculating it */
in AuthSessSetup so why bother calculating it */
/* toUpper(nls_info,
/* toUpper(nls_info,
...
@@ -690,6 +693,8 @@ int setup_session(unsigned int xid, struct cifsSesInfo *pSesInfo, struct nls_tab
...
@@ -690,6 +693,8 @@ int setup_session(unsigned int xid, struct cifsSesInfo *pSesInfo, struct nls_tab