From a7f361eb13bdaf3e6d98ea034c9769fc7429d902 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sun, 7 Sep 2008 04:16:05 +0000 Subject: [PATCH] 100l, compute correctly poll_table size when allocating Originally committed as revision 15238 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffserver.c b/ffserver.c index f6898e5421..60f69f0c7e 100644 --- a/ffserver.c +++ b/ffserver.c @@ -545,7 +545,7 @@ static int http_server(void) struct pollfd *poll_table, *poll_entry; HTTPContext *c, *c_next; - if(!(poll_table = av_mallocz(nb_max_http_connections + 2))) { + if(!(poll_table = av_mallocz((nb_max_http_connections + 2)*sizeof(*poll_table)))) { http_log("Impossible to allocate a poll table handling %d connections.\n", nb_max_http_connections); return -1; }