summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/smbconf/smbconf_txt_simple.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/smbconf/smbconf_txt_simple.c b/source3/lib/smbconf/smbconf_txt_simple.c
index 968860eaa8..b3e9770776 100644
--- a/source3/lib/smbconf/smbconf_txt_simple.c
+++ b/source3/lib/smbconf/smbconf_txt_simple.c
@@ -223,6 +223,9 @@ static WERROR smbconf_txt_init(struct smbconf_ctx *ctx, const char *path)
}
ctx->data = TALLOC_ZERO_P(ctx, struct txt_private_data);
+ if (ctx->data == NULL) {
+ return WERR_NOMEM;
+ }
return WERR_OK;
}