summaryrefslogtreecommitdiffstats
path: root/source3/lib/smbconf
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-23 01:49:11 +0200
committerMichael Adam <obnox@samba.org>2008-04-23 01:49:11 +0200
commit0ff2168bb6b83f957441a1190e717a04adf73cf6 (patch)
tree69824764f141ee44dd26f920329cf52c6e8843e0 /source3/lib/smbconf
parent21e82d7afcae995e1c38c020945f59a3561099fd (diff)
downloadsamba-0ff2168bb6b83f957441a1190e717a04adf73cf6.tar.gz
samba-0ff2168bb6b83f957441a1190e717a04adf73cf6.tar.xz
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/lib/smbconf')
-rw-r--r--source3/lib/smbconf/smbconf_txt.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/lib/smbconf/smbconf_txt.c b/source3/lib/smbconf/smbconf_txt.c
index c4c636d0bcf..1a29f401649 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) {