git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21e82d7
)
libsmbconf: remove unnecessary talloc success check from smbconf_txt.c
author
Michael Adam
<obnox@samba.org>
Tue, 22 Apr 2008 23:49:11 +0000
(
01:49
+0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 22 Apr 2008 23:49:11 +0000
(
01:49
+0200)
talloc_stackframe() panics on NOMEM.
Michael
(This used to be commit
dee57ad025e7ad9971e44ea30b6aab3806c06fc6
)
source3/lib/smbconf/smbconf_txt.c
patch
|
blob
|
history
diff --git
a/source3/lib/smbconf/smbconf_txt.c
b/source3/lib/smbconf/smbconf_txt.c
index c4c636d0bcf1def3309ea088c4c039a2e73ef82b..1a29f40164924d3d2d9ee7ccab19d94c5ed163d4 100644
(file)
--- 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) {