From 0ff2168bb6b83f957441a1190e717a04adf73cf6 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 23 Apr 2008 01:49:11 +0200 Subject: libsmbconf: remove unnecessary talloc success check from smbconf_txt.c talloc_stackframe() panics on NOMEM. Michael (This used to be commit dee57ad025e7ad9971e44ea30b6aab3806c06fc6) --- source3/lib/smbconf/smbconf_txt.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source3/lib') 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) { -- cgit