mirror of https://github.com/getdnsapi/getdns.git
Use the NOT_IMPLEMENTED return code!
This commit is contained in:
parent
b88c74b4c8
commit
fbc3b2d6a8
|
@ -1185,6 +1185,10 @@ getdns_context_set_resolution_type(struct getdns_context *context,
|
|||
if (value != GETDNS_RESOLUTION_STUB && value != GETDNS_RESOLUTION_RECURSING) {
|
||||
return GETDNS_RETURN_CONTEXT_UPDATE_FAIL;
|
||||
}
|
||||
#ifndef HAVE_LIBUNBOUND
|
||||
if (value == GETDNS_RESOLUTION_RECURSING)
|
||||
return GETDNS_RETURN_NOT_IMPLEMENTED;
|
||||
#endif
|
||||
#ifndef STUB_NATIVE_DNSSEC
|
||||
if (context->resolution_type_set != 0) {
|
||||
/* already setup */
|
||||
|
|
|
@ -166,7 +166,7 @@ submit_network_request(getdns_network_req *netreq)
|
|||
netreq, ub_resolve_callback, &(netreq->unbound_id)) ?
|
||||
GETDNS_RETURN_GENERIC_ERROR : GETDNS_RETURN_GOOD;
|
||||
#else
|
||||
return GETDNS_RETURN_GENERIC_ERROR;
|
||||
return GETDNS_RETURN_NOT_IMPLEMENTED;
|
||||
#endif
|
||||
}
|
||||
/* Submit with stub resolver */
|
||||
|
|
Loading…
Reference in New Issue