]> granicus.if.org Git - curl/commit
http: fix the max header length detection logic
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Feb 2018 08:49:33 +0000 (09:49 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Feb 2018 21:51:07 +0000 (22:51 +0100)
commit03370fa5a0ac5c1deae4315f01f19e9f1bc53662
tree5fb4777f67e9681969a07c274b6d5b3668308f9c
parent5a44c9fa8b5bc2afc2e0fd97a8bd76522c51987e
http: fix the max header length detection logic

Previously, it would only check for max length if the existing alloc
buffer was to small to fit it, which often would make the header still
get used.

Reported-by: Guido Berhoerster
Bug: https://curl.haxx.se/mail/lib-2018-02/0056.html

Closes #2315
lib/http.c