1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

libsmbconf: add a check for talloc failure to smbconf_txt_init().

Michael
This commit is contained in:
Michael Adam 2008-04-13 16:34:40 +02:00
parent e8bafcfbf4
commit f76ec7d87e

View File

@ -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;
}