Re: rpki-client: avoid NULL access in http_parse_uri()

2021-03-18 Thread Claudio Jeker
On Thu, Mar 18, 2021 at 03:54:48PM +0100, Theo Buehler wrote: > A malformed URI such as "https://[::1/index.html"; causes a NULL access > in the hosttail[1] == ":" check. Good catch. I think your diff makes this code a bit easier to understand. OK claudio@ > Index: http.c > ==

rpki-client: avoid NULL access in http_parse_uri()

2021-03-18 Thread Theo Buehler
A malformed URI such as "https://[::1/index.html"; causes a NULL access in the hosttail[1] == ":" check. Index: http.c === RCS file: /cvs/src/usr.sbin/rpki-client/http.c,v retrieving revision 1.6 diff -u -p -r1.6 http.c --- http.c