GETDNS_RETURN_INVALID_PARAMETER on NULL context

This commit is contained in:
Willem Toorop 2014-02-05 15:41:33 +01:00
parent 562e2dd6df
commit af97d7b554
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ getdns_general_sync(struct getdns_context *context,
struct getdns_dict **response)
{
getdns_return_t response_status;
RETURN_IF_NULL(context, GETDNS_RETURN_BAD_CONTEXT);
RETURN_IF_NULL(context, GETDNS_RETURN_INVALID_PARAMETER);
RETURN_IF_NULL(response, GETDNS_RETURN_INVALID_PARAMETER);
RETURN_IF_NULL(name, GETDNS_RETURN_INVALID_PARAMETER);
response_status = validate_dname(name);