r18944: talloc_reference() can fail...
authorStefan Metzmacher <metze@samba.org>
Wed, 27 Sep 2006 06:39:56 +0000 (06:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:23 +0000 (14:20 -0500)
(remove compiler warning)

metze

source/web_server/web_server.c

index 6264b67e0c6629bd74bc42d1694b347c066e6c9f..762806c84f32bd4abacdea8e5dab8aaf37ebbb4c 100644 (file)
@@ -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);
        }