librpc: make sure the 4 byte _pad in ODJ_WIN7BLOB is never 0
authorGünther Deschner <gd@samba.org>
Thu, 25 Feb 2021 22:19:25 +0000 (23:19 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 14 Jul 2021 16:49:29 +0000 (16:49 +0000)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
librpc/idl/ODJ.idl

index a60ed94a5e53f078eb719f6489fee5b958ccaaff..00c731b76a934a16765a4ce98894a3cca7918eb2 100644 (file)
@@ -99,7 +99,16 @@ interface ODJ
                [string,charset(UTF16)] uint16 *lpDomain;
                [string,charset(UTF16)] uint16 *lpMachineName;
                [string,charset(UTF16)] [flag(NDR_SECRET)] uint16 *lpMachinePassword;
+               /*
+                * Not sure whether the following 4 bytes are padding or a
+                * pointer, at least it's value may not be 0 for Windows to accept our
+                * generated win7blobs - gd
+                */
+#if 0
                [flag(NDR_ALIGN8)]   DATA_BLOB _pad;
+#else
+               [value(0xffffffff)] uint32 _pad;
+#endif
                ODJ_POLICY_DNS_DOMAIN_INFO DnsDomainInfo;
                netr_DsRGetDCNameInfo DcInfo;
                DWORD Options;