r14224: Fix Coverity bug # 6
authorVolker Lendecke <vlendec@samba.org>
Sat, 11 Mar 2006 23:52:09 +0000 (23:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:18 +0000 (11:15 -0500)
(This used to be commit e1c617adae51a4645804421394aba05de9dc1e3f)

source3/libmsrpc/libmsrpc.c

index 036798b83dd9862747cda6fa7f5113a1ab3d4b89..5f71af21da20859bc0114425fe7cd5f8f5d1f003 100644 (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);