Fix a silly bug in getdns_context_set_return_dnssec_status

This commit is contained in:
Neel Goyal 2014-03-05 10:42:36 -05:00
parent 56810e21c8
commit 6ab9ce861b
1 changed files with 1 additions and 1 deletions

View File

@ -1802,7 +1802,7 @@ getdns_context_get_api_information(getdns_context* context) {
getdns_return_t
getdns_context_set_return_dnssec_status(getdns_context* context, int enabled) {
RETURN_IF_NULL(context, GETDNS_RETURN_INVALID_PARAMETER);
if (enabled != GETDNS_EXTENSION_TRUE ||
if (enabled != GETDNS_EXTENSION_TRUE &&
enabled != GETDNS_EXTENSION_FALSE) {
return GETDNS_RETURN_INVALID_PARAMETER;
}