summaryrefslogtreecommitdiffstats
path: root/source/registry
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-28 02:29:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:55 -0500
commit09652dc71ce13bd305e653557e43731378398dd6 (patch)
treee68f97c79b161a8100382927353426fe3e582f64 /source/registry
parent84e8cc0593c20b1262965a320d89b72a3dc9b402 (diff)
downloadsamba-09652dc71ce13bd305e653557e43731378398dd6.tar.gz
samba-09652dc71ce13bd305e653557e43731378398dd6.tar.xz
samba-09652dc71ce13bd305e653557e43731378398dd6.zip
r17867: Fix null deref in error code path. Found by the
Stanford checker. Jeremy.
Diffstat (limited to 'source/registry')
-rw-r--r--source/registry/reg_objects.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/registry/reg_objects.c b/source/registry/reg_objects.c
index 2a898f01705..1bd3ac9bd91 100644
--- a/source/registry/reg_objects.c
+++ b/source/registry/reg_objects.c
@@ -182,6 +182,7 @@ REGISTRY_VALUE* dup_registry_value( REGISTRY_VALUE *val )
DEBUG(0,("dup_registry_value: memdup() failed for [%d] bytes!\n",
val->size));
SAFE_FREE( copy );
+ return NULL;
}
copy->size = val->size;
}