X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=source4%2Flib%2Fregistry%2Fldb.c;h=d70489ac03a53f4ebd491de1d370d3d90f33de25;hp=033fdcb780cc3c295876023addeb4665c3cae0a0;hb=5ab6a8d077712c789bbd245f5f7cac7fc71cba81;hpb=70534adee10fc6f5bba2d9304668dc6508e5de5a diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index 033fdcb780c..d70489ac03a 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -80,7 +80,8 @@ static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx, case REG_DWORD: { uint32_t tmp = strtoul((char *)val->data, NULL, 0); - *data = data_blob_talloc(mem_ctx, &tmp, 4); + *data = data_blob_talloc(mem_ctx, NULL, 4); + SIVAL(data->data, 0, tmp); } break;