Commit 99d66de6 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Petr Špaček

fixup! modules/http DoH: allocate req.qsource on req.pool

parent 856f9dc6
......@@ -9,8 +9,11 @@ local function get_http_ttl(pkt)
local function convert_sockaddr(pool, family, ipaddr, port)
local res = ffi.C.kr_straddr_socket(ipaddr, port, pool) -- resilient to bad parameters
if not (family and ipaddr and port and res ~= nil) then
local res = nil
if family and ipaddr and port then
res = ffi.C.kr_straddr_socket(ipaddr, port, pool)
if not res then
panic('failed to obtain peer IP address')
return res
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment