From: Jelte Jansen Date: Wed, 5 Apr 2006 09:41:07 +0000 (+0000) Subject: removed duplicate error X-Git-Tag: release-1.1.0~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=598f50f36ca9443dfd7e353556287802bb959fb5;p=thirdparty%2Fldns.git removed duplicate error --- diff --git a/error.c b/error.c index ad0ac24d..029aef81 100644 --- a/error.c +++ b/error.c @@ -24,7 +24,6 @@ ldns_lookup_table ldns_error_str[] = { { LDNS_STATUS_MEM_ERR, "General memory error" }, { LDNS_STATUS_INTERNAL_ERR, "Internal error, this should not happen" }, { LDNS_STATUS_ERR, "General LDNS error" }, - { LDNS_STATUS_NO_NAMESERVERS_ERR, "No nameservers in resolver structure" }, { LDNS_STATUS_INVALID_INT, "Conversion error, integer expected" }, { LDNS_STATUS_INVALID_IP4, "Conversion error, ip4 addr expected" }, { LDNS_STATUS_INVALID_IP6, "Conversion error, ip6 addr expected" }, diff --git a/ldns/error.h b/ldns/error.h index c9552897..40702bff 100644 --- a/ldns/error.h +++ b/ldns/error.h @@ -28,7 +28,6 @@ enum ldns_enum_status LDNS_STATUS_MEM_ERR, LDNS_STATUS_INTERNAL_ERR, LDNS_STATUS_ERR, - LDNS_STATUS_NO_NAMESERVERS_ERR, LDNS_STATUS_INVALID_INT, LDNS_STATUS_INVALID_IP4, LDNS_STATUS_INVALID_IP6, diff --git a/net.c b/net.c index 6cff5d54..0a3472d3 100644 --- a/net.c +++ b/net.c @@ -176,7 +176,7 @@ ldns_send(ldns_pkt **result, ldns_resolver *r, const ldns_pkt *query_pkt) if (all_servers_rtt_inf) { LDNS_FREE(reply_bytes); - return LDNS_STATUS_NO_NAMESERVERS_ERR; + return LDNS_STATUS_RES_NO_NS; } #ifdef HAVE_SSL if (tsig_mac && reply_bytes) {