diff options
author | Günther Deschner <gd@samba.org> | 2013-12-11 00:50:03 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-12-12 13:34:51 +0100 |
commit | 07ef84fa02b0dd51786ef6cd82ab4d24905f33a6 (patch) | |
tree | 02fe2f9df877f8f0be6cac57b6248abd0740c8a6 /source3/libgpo/gpext | |
parent | 12c7b9498c02e75440e3923cdc4b8c6e03f8afd8 (diff) | |
download | samba-07ef84fa02b0dd51786ef6cd82ab4d24905f33a6.tar.gz samba-07ef84fa02b0dd51786ef6cd82ab4d24905f33a6.tar.xz samba-07ef84fa02b0dd51786ef6cd82ab4d24905f33a6.zip |
libgpo/security_CSE: fix unicode preamble check of SecEdit/GptTmpl.inf files.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/libgpo/gpext')
-rw-r--r-- | source3/libgpo/gpext/security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libgpo/gpext/security.c b/source3/libgpo/gpext/security.c index b68840d2f6a..dba1e9b72fe 100644 --- a/source3/libgpo/gpext/security.c +++ b/source3/libgpo/gpext/security.c @@ -64,7 +64,7 @@ static NTSTATUS gpttmpl_parse_header(struct gp_inifile_context *ini_ctx, char *signature = NULL; NTSTATUS result; int version; - int is_unicode; + bool is_unicode = false; if (!ini_ctx) { return NT_STATUS_INVALID_PARAMETER; @@ -89,7 +89,7 @@ static NTSTATUS gpttmpl_parse_header(struct gp_inifile_context *ini_ctx, *version_out = version; } - result = gp_inifile_getint(ini_ctx, GPTTMPL_SECTION_UNICODE + result = gp_inifile_getbool(ini_ctx, GPTTMPL_SECTION_UNICODE ":"GPTTMPL_PARAMETER_UNICODE, &is_unicode); if (!NT_STATUS_IS_OK(result) || !is_unicode) { return NT_STATUS_INTERNAL_DB_CORRUPTION; |