Avoid NULL access in http_parse_uri()
authortb <tb@openbsd.org>
Thu, 18 Mar 2021 15:40:45 +0000 (15:40 +0000)
committertb <tb@openbsd.org>
Thu, 18 Mar 2021 15:40:45 +0000 (15:40 +0000)
commitcf09f54743c62d225649013fd3e338a48a2414ee
treea2feec56373490d10710741f460aaa13cfaf33d1
parentb37ade80937bf2c6beed61981a98c8f2db94ad77
Avoid NULL access in http_parse_uri()

A malformed URI such as "https://[::1/index.html" causes a NULL access
in the hosttail[1] == ":" check.

ok claudio
usr.sbin/rpki-client/http.c