Menu

#353 Dereferencing a null pointer in “lievent-2.0.22/evdns.c”

For_2.0
open
None
5
2015-04-30
2015-04-30
No

Hi,
There is an issue of "Dereferencing a null pointer" in “lievent-2.0.22/evdns.c”

Issue:
at line:4640 data->ipv6_request.r = evdns_base_resolve_ipv6()
the evdns_base_reslove_ipv6() may return NULL if handle->current_req == NULL and there is possibility of handle->current_req to be NULL either by request_new() or search_request_new().

Solution :
There should be NULL check for "data->ipv6_request.r" before dereferencing it.
and the respective patch has been attached .

Please review and give your concern.

Thanks
Pankaj Sharma

1 Attachments

Discussion


Log in to post a comment.