for (p_it = Pipes; p_it; p_it = p_it->next)
DEBUG(5,("open pipes: name %s pnum=%x\n", p_it->name, p_it->pnum));
- /* Ensure the connection isn't idled whilst this pipe is open. */
- conn->num_files_open++;
-
return chain_p;
}
DLIST_ADD(InternalPipes, p);
p->conn = conn;
+
+ /* Ensure the connection isn't idled whilst this pipe is open. */
+ p->conn->num_files_open++;
+
p->vuid = vuid;
p->ntlmssp_chal_flags = 0;
SAFE_FREE(p);
- conn->num_files_open--;
-
return True;
}
DLIST_REMOVE(InternalPipes, p);
+ p->conn->num_files_open--;
+
ZERO_STRUCTP(p);
SAFE_FREE(p);