diff options
author | Michael Adam <obnox@samba.org> | 2008-04-23 01:49:11 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-23 01:49:11 +0200 |
commit | 0ff2168bb6b83f957441a1190e717a04adf73cf6 (patch) | |
tree | 69824764f141ee44dd26f920329cf52c6e8843e0 /source3 | |
parent | 21e82d7afcae995e1c38c020945f59a3561099fd (diff) | |
download | samba-0ff2168bb6b83f957441a1190e717a04adf73cf6.tar.gz samba-0ff2168bb6b83f957441a1190e717a04adf73cf6.tar.bz2 samba-0ff2168bb6b83f957441a1190e717a04adf73cf6.zip |
libsmbconf: remove unnecessary talloc success check from smbconf_txt.c
talloc_stackframe() panics on NOMEM.
Michael
(This used to be commit dee57ad025e7ad9971e44ea30b6aab3806c06fc6)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/smbconf/smbconf_txt.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/lib/smbconf/smbconf_txt.c b/source3/lib/smbconf/smbconf_txt.c index c4c636d0bc..1a29f40164 100644 --- a/source3/lib/smbconf/smbconf_txt.c +++ b/source3/lib/smbconf/smbconf_txt.c @@ -302,10 +302,6 @@ static WERROR smbconf_txt_get_share_names(struct smbconf_ctx *ctx, } tmp_ctx = talloc_stackframe(); - if (tmp_ctx == NULL) { - werr = WERR_NOMEM; - goto done; - } /* make sure "global" is always listed first, * possibly after NULL section */ @@ -411,10 +407,6 @@ static WERROR smbconf_txt_get_share(struct smbconf_ctx *ctx, } tmp_ctx = talloc_stackframe(); - if (tmp_ctx == NULL) { - werr = WERR_NOMEM; - goto done; - } tmp_service = TALLOC_ZERO_P(tmp_ctx, struct smbconf_service); if (tmp_service == NULL) { |