about summary refs log tree commit diff
path: root/resolv/res_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/res_data.c')
-rw-r--r--resolv/res_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_data.c b/resolv/res_data.c
index 968f820d5f..30d8ab94ff 100644
--- a/resolv/res_data.c
+++ b/resolv/res_data.c
@@ -143,7 +143,7 @@ fp_query(const u_char *msg, FILE *file) {
 
 void
 fp_nquery(const u_char *msg, int len, FILE *file) {
-	if ((_res.options & RES_INIT) == 0 && res_init() == -1)
+	if ((_res.options & RES_INIT) == 0 && __res_ninit(&_res) == -1)
 		return;
 
 	res_pquery(&_res, msg, len, file);