Commit 306cb99b authored by Takeshi Watanabe's avatar Takeshi Watanabe

Merge commit '36d016af'

parents 4b5c21cf 36d016af
......@@ -152,6 +152,10 @@ mrb_addrinfo_getaddrinfo(mrb_state *mrb, mrb_value klass)
hints.ai_protocol = (int)mrb_fixnum(protocol);
}
if (mrb_fixnum_p(protocol)) {
hints.ai_protocol = mrb_fixnum(protocol);
}
lastai = mrb_cv_get(mrb, klass, mrb_intern_lit(mrb, "_lastai"));
if (mrb_cptr_p(lastai)) {
freeaddrinfo((struct addrinfo*)mrb_cptr(lastai));
......
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