diff --git a/src/context.c b/src/context.c index 689a4373..53cddf31 100755 --- a/src/context.c +++ b/src/context.c @@ -871,9 +871,6 @@ getdns_context_set_namespaces(struct getdns_context *context, if (namespace_count == 0 || namespaces == NULL) { return GETDNS_RETURN_CONTEXT_UPDATE_FAIL; } - if (context->resolution_type_set != 0) { - return GETDNS_RETURN_CONTEXT_UPDATE_FAIL; - } for(i=0; ifollow_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; @@ -1174,10 +1170,6 @@ getdns_context_set_upstream_recursive_servers(struct getdns_context *context, if (count == 0 || r != GETDNS_RETURN_GOOD) { return GETDNS_RETURN_CONTEXT_UPDATE_FAIL; } - if (context->resolution_type_set != 0) { - /* already setup */ - return GETDNS_RETURN_CONTEXT_UPDATE_FAIL; - } memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ hints.ai_socktype = 0; /* Datagram socket */