summaryrefslogtreecommitdiff
path: root/source/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-02 22:42:39 +0000
committerJeremy Allison <jra@samba.org>2001-04-02 22:42:39 +0000
commit673887846995db49f910055939e00c7663d9dce4 (patch)
treee7357fd1f84e8d6996043de94df101f8c1c73891 /source/rpc_server
parentfb26b73a2ca45d97a0fb31d5ce06da70a96cbef2 (diff)
downloadsamba-673887846995db49f910055939e00c7663d9dce4.tar.gz
include/ntdomain.h:
rpc_server/srv_lsa_hnd.c: Remove the back pointer to pipes that may go away before the handle does. include/proto.h: lib/replace.c: Don't protoise setlinebuf as it differs amongst systems. Jeremy.
Diffstat (limited to 'source/rpc_server')
-rw-r--r--source/rpc_server/srv_lsa_hnd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/rpc_server/srv_lsa_hnd.c b/source/rpc_server/srv_lsa_hnd.c
index d0a26abc6b6..393f50a498e 100644
--- a/source/rpc_server/srv_lsa_hnd.c
+++ b/source/rpc_server/srv_lsa_hnd.c
@@ -109,7 +109,6 @@ BOOL create_policy_hnd(pipes_struct *p, POLICY_HND *hnd, void (*free_fn)(void *)
ZERO_STRUCTP(pol);
- pol->p = p;
pol->data_ptr = data_ptr;
pol->free_fn = free_fn;
@@ -189,9 +188,9 @@ BOOL close_policy_hnd(pipes_struct *p, POLICY_HND *hnd)
if (pol->free_fn && pol->data_ptr)
(*pol->free_fn)(pol->data_ptr);
- pol->p->pipe_handles->count--;
+ p->pipe_handles->count--;
- DLIST_REMOVE(pol->p->pipe_handles->Policy, pol);
+ DLIST_REMOVE(p->pipe_handles->Policy, pol);
ZERO_STRUCTP(pol);