getdns_context_set_follow_redirects not changed

Error in previous commit.
Nothing changed with getdns_context_set_follow_redirects.
It is simply not implemented
This commit is contained in:
Willem Toorop 2014-10-28 14:27:30 +01:00
parent 4740d0baf4
commit f9195fde4d
1 changed files with 4 additions and 0 deletions

View File

@ -996,6 +996,10 @@ getdns_context_set_follow_redirects(struct getdns_context *context,
return GETDNS_RETURN_INVALID_PARAMETER;
context->follow_redirects = value;
if (context->resolution_type_set != 0) {
/* already setup */
return GETDNS_RETURN_CONTEXT_UPDATE_FAIL;
}
dispatch_updated(context, GETDNS_CONTEXT_CODE_FOLLOW_REDIRECTS);
return GETDNS_RETURN_GOOD;