Use the NOT_IMPLEMENTED return code!

This commit is contained in:
Willem Toorop 2015-10-22 12:13:40 +02:00
parent b88c74b4c8
commit fbc3b2d6a8
2 changed files with 5 additions and 1 deletions

View File

@ -1185,6 +1185,10 @@ getdns_context_set_resolution_type(struct getdns_context *context,
if (value != GETDNS_RESOLUTION_STUB && value != GETDNS_RESOLUTION_RECURSING) { if (value != GETDNS_RESOLUTION_STUB && value != GETDNS_RESOLUTION_RECURSING) {
return GETDNS_RETURN_CONTEXT_UPDATE_FAIL; return GETDNS_RETURN_CONTEXT_UPDATE_FAIL;
} }
#ifndef HAVE_LIBUNBOUND
if (value == GETDNS_RESOLUTION_RECURSING)
return GETDNS_RETURN_NOT_IMPLEMENTED;
#endif
#ifndef STUB_NATIVE_DNSSEC #ifndef STUB_NATIVE_DNSSEC
if (context->resolution_type_set != 0) { if (context->resolution_type_set != 0) {
/* already setup */ /* already setup */

View File

@ -166,7 +166,7 @@ submit_network_request(getdns_network_req *netreq)
netreq, ub_resolve_callback, &(netreq->unbound_id)) ? netreq, ub_resolve_callback, &(netreq->unbound_id)) ?
GETDNS_RETURN_GENERIC_ERROR : GETDNS_RETURN_GOOD; GETDNS_RETURN_GENERIC_ERROR : GETDNS_RETURN_GOOD;
#else #else
return GETDNS_RETURN_GENERIC_ERROR; return GETDNS_RETURN_NOT_IMPLEMENTED;
#endif #endif
} }
/* Submit with stub resolver */ /* Submit with stub resolver */