mirror of https://github.com/getdnsapi/getdns.git
Check getdns_dict_remove_name parameters
This commit is contained in:
parent
f632ef8939
commit
820a657297
|
@ -1208,6 +1208,9 @@ getdns_dict_remove_name(getdns_dict *dict, const char *name)
|
||||||
const char *next;
|
const char *next;
|
||||||
struct getdns_dict_item *d;
|
struct getdns_dict_item *d;
|
||||||
|
|
||||||
|
if (!dict || !name)
|
||||||
|
return GETDNS_RETURN_INVALID_PARAMETER;
|
||||||
|
|
||||||
if (!(d = _find_dict_item(dict, name)))
|
if (!(d = _find_dict_item(dict, name)))
|
||||||
return GETDNS_RETURN_NO_SUCH_DICT_NAME;
|
return GETDNS_RETURN_NO_SUCH_DICT_NAME;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue