Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Reynaldo H. Verdejo Pinochet authored on 2014/12/27 06:34:52... | ... |
@@ -550,8 +550,11 @@ static int http_server(void) |
550 | 550 |
struct pollfd *poll_table, *poll_entry; |
551 | 551 |
HTTPContext *c, *c_next; |
552 | 552 |
|
553 |
- if(!(poll_table = av_mallocz_array(config.nb_max_http_connections + 2, sizeof(*poll_table)))) { |
|
554 |
- http_log("Impossible to allocate a poll table handling %d connections.\n", config.nb_max_http_connections); |
|
553 |
+ poll_table = av_mallocz_array(config.nb_max_http_connections + 2, |
|
554 |
+ sizeof(*poll_table)); |
|
555 |
+ if(!poll_table) { |
|
556 |
+ http_log("Impossible to allocate a poll table handling %d " |
|
557 |
+ "connections.\n", config.nb_max_http_connections); |
|
555 | 558 |
return -1; |
556 | 559 |
} |
557 | 560 |
|