dns: always set variable family in lookup()
authorcjihrig <cjihrig@gmail.com>
Fri, 8 Aug 2014 02:36:56 +0000 (22:36 -0400)
committerTrevor Norris <trev.norris@gmail.com>
Fri, 8 Aug 2014 21:50:49 +0000 (14:50 -0700)
commit6ea5d1673145a8e8c554035f88f15ce4610be0fd
treefb00cdb4994090c69588fe712a456d0848d5db9e
parent10fa8e399958bb00113c05b0be8da48734c3f866
dns: always set variable family in lookup()

Regression occurred that prevented the variable "family" from being set
properly when the lookup() function's "options" parameter was passed a
number instead of an object.

Also included a sanity check by setting the default value of "family" to
a value that will not pass verification.

Fixes: e643fe4 "dns: fix GetAddrInfo assert"
Reviewed-by: Alexis Campailla <alexis@janeasystems.com>
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
lib/dns.js