Fixed invalid termination sequence that might have lead to crash during termination

This commit is contained in:
Luca Deri 2017-11-12 12:40:03 +01:00
parent a18ac6309a
commit b5ad7ebfce
4 changed files with 36 additions and 35 deletions

View file

@ -39,7 +39,7 @@ static HTTPserver *httpserver;
* Send error message back to a client.
*/
int send_error(struct mg_connection *conn, int status, const char *reason, const char *fmt, ...) {
va_list ap;
va_list ap;
conn->status_code = status;