summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-09-07 04:16:05 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-09-07 04:16:05 +0000
commita7f361eb13bdaf3e6d98ea034c9769fc7429d902 (patch)
tree40fa07d38ec4619a8db83f3fe7c59ceec1a6b549 /ffserver.c
parent4fce284c085aa9d88aa7881015500964f70dbf55 (diff)
100l, compute correctly poll_table size when allocating
Originally committed as revision 15238 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c2
1 files changed, 1 insertions, 1 deletions
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;
}