svn commit: samba r25611 - in
branches/SAMBA_4_0/source/torture/rpc: .
gd at samba.org
gd at samba.org
Wed Oct 10 13:50:27 GMT 2007
Author: gd
Date: 2007-10-10 13:50:21 +0000 (Wed, 10 Oct 2007)
New Revision: 25611
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25611
Log:
Smaller fix for winreg test.
Guenther
Modified:
branches/SAMBA_4_0/source/torture/rpc/winreg.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/winreg.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/winreg.c 2007-10-10 13:49:15 UTC (rev 25610)
+++ branches/SAMBA_4_0/source/torture/rpc/winreg.c 2007-10-10 13:50:21 UTC (rev 25611)
@@ -181,7 +181,7 @@
struct security_descriptor **sd_out)
{
struct winreg_GetKeySecurity r;
- struct security_descriptor *sd;
+ struct security_descriptor *sd = NULL;
DATA_BLOB sdblob;
ZERO_STRUCT(r);
@@ -200,6 +200,8 @@
sdblob.data = r.out.sd->data;
sdblob.length = r.out.sd->len;
+ sd = talloc_zero(tctx, struct security_descriptor);
+
torture_assert_ntstatus_ok(tctx,
ndr_pull_struct_blob(&sdblob, tctx, sd,
(ndr_pull_flags_fn_t)ndr_pull_security_descriptor),
@@ -211,6 +213,8 @@
if (sd_out) {
*sd_out = sd;
+ } else {
+ talloc_free(sd);
}
return true;
More information about the samba-cvs
mailing list