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:
parent
e8bafcfbf4
commit
f76ec7d87e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user