summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-02 22:27:40 +0000
committerJeremy Allison <jra@samba.org>2001-04-02 22:27:40 +0000
commit9f793948bd34e79be1adecfe41c53cb7ec2636fa (patch)
tree269683f47211e3d95a49d8a84776e7e38fc13a52 /source3/rpc_server
parentf439f72ceec665dbd1eae367eb5d7302d8a3338d (diff)
downloadsamba-9f793948bd34e79be1adecfe41c53cb7ec2636fa.tar.gz
samba-9f793948bd34e79be1adecfe41c53cb7ec2636fa.tar.bz2
samba-9f793948bd34e79be1adecfe41c53cb7ec2636fa.zip
include/ntdomain.h:
rpc_server/srv_lsa_hnd.c: Remove back pointer from policy handle list as the pipe that opened the handle may have been closed. We were dereferencing into something that had been closed. rpc_parse/parse_spoolss.c: Sync up with Gerald's changes in 2.2. lib/replace.c: Don't do proto on setlinebuf as it differs between systems. Jeremy. (This used to be commit 887ef3e12dc56b89b2284d42b16a81f03e15110b)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_lsa_hnd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_lsa_hnd.c b/source3/rpc_server/srv_lsa_hnd.c
index d0a26abc6b..393f50a498 100644
--- a/source3/rpc_server/srv_lsa_hnd.c
+++ b/source3/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);