git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fce284
)
100l, compute correctly poll_table size when allocating
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sun, 7 Sep 2008 04:16:05 +0000
(
04:16
+0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sun, 7 Sep 2008 04:16:05 +0000
(
04:16
+0000)
Originally committed as revision 15238 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index
f6898e5
..
60f69f0
100644
(file)
--- 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;
}