From f9195fde4de5c3dc37682cac1fdfaaff03004609 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Tue, 28 Oct 2014 14:27:30 +0100 Subject: [PATCH] getdns_context_set_follow_redirects not changed Error in previous commit. Nothing changed with getdns_context_set_follow_redirects. It is simply not implemented --- src/context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/context.c b/src/context.c index 53cddf31..3665cf0b 100755 --- a/src/context.c +++ b/src/context.c @@ -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;