From ddb8fae40174c72be8b3b6fc1c67cbaad3343153 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 1 Jul 2010 15:50:58 +0200 Subject: s3-registry: allow to read NULL entries (that we allow to store) back from the tdb. Guenther --- source3/registry/reg_backend_db.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source3/registry') diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index a31f7fbfb2..22619eac26 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -1679,12 +1679,8 @@ static int regdb_unpack_values(struct regval_ctr *values, uint8 *buf, int buflen &size, &data_p); - /* add the new value. Paranoid protective code -- make sure data_p is valid */ - - if (size && data_p) { - regval_ctr_addvalue(values, valuename, type, - (uint8_t *)data_p, size); - } + regval_ctr_addvalue(values, valuename, type, + (uint8_t *)data_p, size); SAFE_FREE(data_p); /* 'B' option to tdb_unpack does a malloc() */ DEBUG(8,("specific: [%s], len: %d\n", valuename, size)); -- cgit