Lines 183-189
__res_vinit(res_state statp, int preinit) {
Link Here
|
183 |
#endif |
183 |
#endif |
184 |
statp->nsaddr.sin_family = AF_INET; |
184 |
statp->nsaddr.sin_family = AF_INET; |
185 |
statp->nsaddr.sin_port = htons(NAMESERVER_PORT); |
185 |
statp->nsaddr.sin_port = htons(NAMESERVER_PORT); |
186 |
statp->nscount = 0; |
186 |
statp->nscount = 1; |
187 |
statp->ndots = 1; |
187 |
statp->ndots = 1; |
188 |
statp->pfcode = 0; |
188 |
statp->pfcode = 0; |
189 |
statp->_vcsock = -1; |
189 |
statp->_vcsock = -1; |
Lines 420-426
__res_vinit(res_state statp, int preinit) {
Link Here
|
420 |
continue; |
420 |
continue; |
421 |
} |
421 |
} |
422 |
} |
422 |
} |
423 |
statp->nscount = nservall; |
423 |
if (nservall > 0) |
|
|
424 |
statp->nscount = nservall; |
424 |
#ifdef _LIBC |
425 |
#ifdef _LIBC |
425 |
if (nservall - nserv > 0) { |
426 |
if (nservall - nserv > 0) { |
426 |
statp->_u._ext.nscount6 = nservall - nserv; |
427 |
statp->_u._ext.nscount6 = nservall - nserv; |