diff options
author | Gerald Carter <jerry@samba.org> | 2002-07-04 12:51:26 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-07-04 12:51:26 +0000 |
commit | fafecde33ac6f6b95a588227ad56bdf90524947e (patch) | |
tree | b027e11b356ebf012cfc1a165dcbe383ec34baef /source3 | |
parent | cd383bdc309a0585e656c373e7d1b9d66f6395e1 (diff) | |
download | samba-fafecde33ac6f6b95a588227ad56bdf90524947e.tar.gz samba-fafecde33ac6f6b95a588227ad56bdf90524947e.tar.bz2 samba-fafecde33ac6f6b95a588227ad56bdf90524947e.zip |
* fix seg fault caused by missing DLIST_REMOVE in free_fn()
* fixed constant vaolued returned by REG_UNKNOWN_1A
(This used to be commit 3b934e6a8550a03028eed9fe65c28401f429d591)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_reg_nt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c index 0569d68cae..951e100486 100644 --- a/source3/rpc_server/srv_reg_nt.c +++ b/source3/rpc_server/srv_reg_nt.c @@ -372,6 +372,8 @@ static Registry_Key *find_regkey_index_by_hnd(pipes_struct *p, POLICY_HND *hnd) static void free_reg_info(void *ptr) { Registry_Key *info = (Registry_Key*)ptr; + + DLIST_REMOVE(regkeys_list, info); SAFE_FREE(info); } @@ -695,7 +697,7 @@ NTSTATUS _reg_unknown_1a(pipes_struct *p, REG_Q_UNKNOWN_1A *q_u, REG_R_UNKNOWN_1 if ( !regkey ) return NT_STATUS_INVALID_HANDLE; - r_u->unknown = 0x05000000; /* seems to be consistent...no idea what it means */ + r_u->unknown = 0x00000005; /* seems to be consistent...no idea what it means */ DEBUG(5,("_reg_unknown_1a: Exit\n")); |