diff options
author | Gerald Carter <jerry@samba.org> | 2006-09-26 22:39:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:14:48 -0500 |
commit | c67b5558741ca1e425ed5f51589db3c9ecbf782d (patch) | |
tree | 0890c8bf2be3684f2e0fa6b8625b1b7094104d8a /source3/rpc_server | |
parent | 855d12e56759c39dc80624fcd1096ee4f1f55d81 (diff) | |
download | samba-c67b5558741ca1e425ed5f51589db3c9ecbf782d.tar.gz samba-c67b5558741ca1e425ed5f51589db3c9ecbf782d.tar.bz2 samba-c67b5558741ca1e425ed5f51589db3c9ecbf782d.zip |
r18934: fix a segv in CreateKey()
(This used to be commit 92f22f67ede2ae8c23ee86021a5709d2e27d1dec)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_winreg_nt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c index a90e9e2c77..cb2c795679 100644 --- a/source3/rpc_server/srv_winreg_nt.c +++ b/source3/rpc_server/srv_winreg_nt.c @@ -1231,7 +1231,9 @@ WERROR _winreg_CreateKey( pipes_struct *p, struct policy_handle *handle, struct /* FIXME: report the truth here */ - *action_taken = REG_CREATED_NEW_KEY; + if ( action_taken ) { + *action_taken = REG_CREATED_NEW_KEY; + } done: /* close any intermediate key handles */ |