ares_init_options() with invalid options values should unset the option

Apparently nodejs is relying on the above behavior for legacy reasons.  Add
sanity checks to the various optmask parameters where it makes sense.

See https://github.com/nodejs/node/pull/50800

Fix By: Brad House (@bradh352)
pull/651/head
Brad House 1 year ago
parent 5ec2c68d98
commit c982bf47fd
Loading…
Cancel
Save