mirror of https://github.com/getdnsapi/getdns.git
Fix a silly bug in getdns_context_set_return_dnssec_status
This commit is contained in:
parent
56810e21c8
commit
6ab9ce861b
|
@ -1802,7 +1802,7 @@ getdns_context_get_api_information(getdns_context* context) {
|
||||||
getdns_return_t
|
getdns_return_t
|
||||||
getdns_context_set_return_dnssec_status(getdns_context* context, int enabled) {
|
getdns_context_set_return_dnssec_status(getdns_context* context, int enabled) {
|
||||||
RETURN_IF_NULL(context, GETDNS_RETURN_INVALID_PARAMETER);
|
RETURN_IF_NULL(context, GETDNS_RETURN_INVALID_PARAMETER);
|
||||||
if (enabled != GETDNS_EXTENSION_TRUE ||
|
if (enabled != GETDNS_EXTENSION_TRUE &&
|
||||||
enabled != GETDNS_EXTENSION_FALSE) {
|
enabled != GETDNS_EXTENSION_FALSE) {
|
||||||
return GETDNS_RETURN_INVALID_PARAMETER;
|
return GETDNS_RETURN_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue