]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Simplify openconnect_set_http_proxy() and report errors
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 2 Aug 2019 21:52:22 +0000 (14:52 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 2 Aug 2019 21:52:22 +0000 (14:52 -0700)
commit51676600b366d165d0ce1c9cd34d53bce91bc731
treeb36303ac87456b5cae7874d6638bb438b944717e
parent18918db3d2789aa293b96c99a3d65fcd29d30017
Simplify openconnect_set_http_proxy() and report errors

There was a failure mode where openconnect would exit silently if given
a --proxy= argument it didn't like. Make it print errors in all cases,
and eliminate an -ENOMEM case which seems entirely gratuitous; I don't
think internal_parse_url() needs the 'const char *url' it's passed to
be hackishly writeable, so there is no need to allocate our own copy.

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