1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-04 16:58:42 +03:00

libgpo: Fix error check in gp_inifile_init_context_direct()

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Günther Deschner 2017-01-19 16:49:38 +01:00 committed by Andreas Schneider
parent ca5d36d842
commit 9a55940e95

View File

@ -359,7 +359,7 @@ NTSTATUS gp_inifile_init_context_direct(TALLOC_CTX *mem_ctx,
{ {
struct gp_inifile_context *gp_ctx = NULL; struct gp_inifile_context *gp_ctx = NULL;
NTSTATUS status; NTSTATUS status;
int rv; bool rv;
char *tmp_filename = NULL; char *tmp_filename = NULL;
if (unix_path == NULL || pgp_ctx == NULL) { if (unix_path == NULL || pgp_ctx == NULL) {
@ -382,7 +382,7 @@ NTSTATUS gp_inifile_init_context_direct(TALLOC_CTX *mem_ctx,
change_section, change_section,
store_keyval_pair, store_keyval_pair,
gp_ctx); gp_ctx);
if (rv != 0) { if (!rv) {
return NT_STATUS_NO_SUCH_FILE; return NT_STATUS_NO_SUCH_FILE;
} }