summaryrefslogtreecommitdiff
path: root/source4/web_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-27 06:39:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:23 -0500
commit315f04caa87f64260b2ed6b29bc61de5e6cc1d2a (patch)
tree0af417e9dddd26b7515fe41e55ff45ab7c68afd4 /source4/web_server
parent9b1e1e2e5dcfd286af7155ceb824f91cf0e5b5b6 (diff)
downloadsamba-315f04caa87f64260b2ed6b29bc61de5e6cc1d2a.tar.gz
samba-315f04caa87f64260b2ed6b29bc61de5e6cc1d2a.tar.bz2
samba-315f04caa87f64260b2ed6b29bc61de5e6cc1d2a.zip
r18944: talloc_reference() can fail...
(remove compiler warning) metze (This used to be commit 515f4eb1cef11d8f942aeffc72c9da1bbd4d78cd)
Diffstat (limited to 'source4/web_server')
-rw-r--r--source4/web_server/web_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/web_server/web_server.c b/source4/web_server/web_server.c
index 6264b67e0c..762806c84f 100644
--- a/source4/web_server/web_server.c
+++ b/source4/web_server/web_server.c
@@ -122,7 +122,7 @@ static void websrv_recv(struct stream_connection *conn, uint16_t flags)
while inside http_process_input(), but we must not
destroy the stack variables being used by that
rendering process when we handle the timeout. */
- talloc_reference(web->task, web);
+ if (!talloc_reference(web->task, web)) goto failed;
http_process_input(web);
talloc_unlink(web->task, web);
}