httpd: defend against attempts to OOM us. Closes 9611
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 26 Jan 2017 18:35:40 +0000 (19:35 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 26 Jan 2017 18:35:40 +0000 (19:35 +0100)
commitb4b12bf2344148976d1cd0f17bca0c0fbf7a364c
treea04afb20458db1c5138928e5dc0ad832a6de00de
parent4d417709b0fb837fd6884a9bc5a55027dec8a985
httpd: defend against attempts to OOM us. Closes 9611

We were strdup'ing "Cookie: foo" every time we saw it.

function                                             old     new   delta
handle_incoming_and_exit                            2733    2821     +88

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c