This commit is contained in:
uzlonewolf 2023-01-13 09:54:43 +00:00 committed by GitHub
commit 8a4593059b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1614,6 +1614,11 @@ static int _jsmn_get_item(struct mem_funcs *mf, const char *js, jsmntok_t *t,
if (t->end < t->start)
*r = GETDNS_RETURN_GENERIC_ERROR;
else if (_jsmn_get_ipdict(mf, js, t, &item->data.dict)) {
item->dtype = t_dict;
*r = GETDNS_RETURN_GOOD;
return 1;
}
else if (!(item->data.bindata =
GETDNS_MALLOC(*mf, getdns_bindata)))
*r = GETDNS_RETURN_MEMORY_ERROR;