mirror of https://github.com/getdnsapi/getdns.git
GETDNS_RETURN_INVALID_PARAMETER on NULL context
This commit is contained in:
parent
562e2dd6df
commit
af97d7b554
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue