mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #3985 from take-cheeze/revert_ai_protocol
Revert #3984 .
This commit is contained in:
@@ -152,10 +152,6 @@ 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));
|
||||
|
||||
Reference in New Issue
Block a user