mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
r14224: Fix Coverity bug # 6
(This used to be commit e1c617adae51a4645804421394aba05de9dc1e3f)
This commit is contained in:
parent
c00e664e25
commit
cdf4508058
@ -212,18 +212,9 @@ int cac_Connect(CacServerHandle *hnd, const char *srv) {
|
||||
|
||||
|
||||
void cac_FreeHandle(CacServerHandle * hnd) {
|
||||
SMBCSRV *srv = NULL;
|
||||
|
||||
if(!hnd)
|
||||
return;
|
||||
|
||||
|
||||
if(srv) {
|
||||
/*close all pipe sessions*/
|
||||
cli_nt_pipes_close(&(srv->cli));
|
||||
}
|
||||
|
||||
|
||||
/*only free the context if we created it*/
|
||||
if(!hnd->_internal.user_supplied_ctx) {
|
||||
smbc_free_context(hnd->_internal.ctx, True);
|
||||
|
Loading…
x
Reference in New Issue
Block a user