summaryrefslogtreecommitdiff
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
commit5f925a01908384fe9b49447677501e4f6aa3912e (patch)
treef99e4dd25b5ba3d4fc7d97982f0a070d488aa774
parent767820e462f43f6388aa512cff10b4ff3748e834 (diff)
downloadsamba-5f925a01908384fe9b49447677501e4f6aa3912e.tar.gz
samba-5f925a01908384fe9b49447677501e4f6aa3912e.tar.bz2
samba-5f925a01908384fe9b49447677501e4f6aa3912e.zip
r17867: Fix null deref in error code path. Found by the
Stanford checker. Jeremy. (This used to be commit 09652dc71ce13bd305e653557e43731378398dd6)
-rw-r--r--source3/registry/reg_objects.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/registry/reg_objects.c b/source3/registry/reg_objects.c
index 2a898f0170..1bd3ac9bd9 100644
--- a/source3/registry/reg_objects.c
+++ b/source3/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;
}