diff options
author | Michael Adam <obnox@samba.org> | 2008-04-13 16:34:40 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-13 20:04:44 +0200 |
commit | 935b99c84c586eb112347f98790122ac29890231 (patch) | |
tree | e3f873fe278818589d76bb8a99bcbf7fc9983fef /source3/lib | |
parent | 35d6068f2504cc76728c3187c3e16171112dabca (diff) | |
download | samba-935b99c84c586eb112347f98790122ac29890231.tar.gz samba-935b99c84c586eb112347f98790122ac29890231.tar.bz2 samba-935b99c84c586eb112347f98790122ac29890231.zip |
libsmbconf: add a check for talloc failure to smbconf_txt_init().
Michael
(This used to be commit f76ec7d87e206426c795374397ba725ecdeec784)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/smbconf/smbconf_txt_simple.c | 3 |
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; } |