summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2012-05-07 15:44:21 +0200
committerMichael Adam <obnox@samba.org>2012-06-26 19:57:18 +0200
commit55ce9e1fa9fb9641200e9b86ad1142dd9cdf4262 (patch)
treeb46fb73968658159aa1b4763e48b30c58b14e01e /source3
parent619f0c07ffdf53854701bfa1798bd0d4ce9cfbf2 (diff)
downloadsamba-55ce9e1fa9fb9641200e9b86ad1142dd9cdf4262.tar.gz
samba-55ce9e1fa9fb9641200e9b86ad1142dd9cdf4262.tar.bz2
samba-55ce9e1fa9fb9641200e9b86ad1142dd9cdf4262.zip
s3:registry: fix possible double free in import
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/registry/reg_import.c b/source3/registry/reg_import.c
index ce3cd9729f..5f99b07329 100644
--- a/source3/registry/reg_import.c
+++ b/source3/registry/reg_import.c
@@ -75,6 +75,7 @@ int reg_parse_callback_key(struct reg_import* p,
if (p->open_key != NULL ) {
werr = p->call.closekey(p->call.data, p->open_key);
+ p->open_key = NULL;
if (!W_ERROR_IS_OK(werr)) {
DEBUG(0, ("closekey failed: %s\n", win_errstr(werr)));
}