luci-lib-httpclient: prevent nil access with invalid IP address literals
authorJo-Philipp Wich <jo@mein.io>
Tue, 11 Dec 2018 08:17:42 +0000 (09:17 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 11 Dec 2018 08:17:50 +0000 (09:17 +0100)
commita692ca789ae916b1393a39236ff8cf3e8a431717
treef387b024d9c57d127a20b4412902a291309d7a22
parenta54baf7be0d293b50c6b2754c11d61e6e2ad82af
luci-lib-httpclient: prevent nil access with invalid IP address literals

Fixes: a54baf7be ("luci-lib-httpclient: revamp URL handling")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libs/luci-lib-httpclient/luasrc/httpclient.lua