]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Kill MAX_BUF_LEN
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 11 May 2019 09:41:14 +0000 (10:41 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 11 May 2019 09:41:17 +0000 (10:41 +0100)
commit558c2abd3efb050f6f717e6238c4b532bdfeb387
tree6ea07fe85e751bcda2a0eed87c30fd29093aa64c
parentbf648c37c05208f5752113b1352a348b63c9df15
Kill MAX_BUF_LEN

There's no real point in having a hard limit for struct oc_text_buf, the
whole point of which is that it is dynamically allocated. Just guard
against the int buf_len overflowing.

In process_http_response() the hard-coded buf[] array is only used for
headers one line at a time now, so 8KiB should suffice.

Fixes: #39
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
http.c