s4:registry - "reg_ldb_pack_value" - provide workarounds when the server receives...
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 23 Mar 2010 15:19:26 +0000 (16:19 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 23 Mar 2010 15:46:17 +0000 (16:46 +0100)
commit3a2488870f8f52e14948b50ec9b91de1c9a990b9
treef7251cfffb969ad58f490cc7c802bbb3edf011d1
parent0426b5b78678f4ffe564aa58a00a8f01790e7b1f
s4:registry - "reg_ldb_pack_value" - provide workarounds when the server receives non-standard data.

For now we reset/delete the "data" attribute. Anyway there is the need to find
a better solution (we probably want to change the format and save all data as
we got it like Windows itself does).

These workarounds are needed since for example the Windows 2000 Registry Editor
initialises empty REG_SZ strings with content '\0' and length 1 (not a valid
UTF16 sequence - "convert_string_talloc" breaks). So we simply reset/delete the
"data" attribute which works (no content).
source4/lib/registry/ldb.c