1
0
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:
Volker Lendecke 2006-03-11 23:52:09 +00:00 committed by Gerald (Jerry) Carter
parent c00e664e25
commit cdf4508058

View File

@ -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);