Commit 56c687b3 authored by Alexander Alashkin's avatar Alexander Alashkin Committed by rojer

Check for null in DNS handler

PUBLISHED_FROM=e8b719d491688032e6395b75d5859ffad7d7ea23
parent 083d3986
......@@ -9357,10 +9357,14 @@ static void mg_resolve_async_eh(struct mg_connection *nc, int ev, void *data) {
struct mg_resolve_async_request *req;
struct mg_dns_message *msg;
DBG(("ev=%d", ev));
DBG(("ev=%d user_data=%p", ev, nc->user_data));
req = (struct mg_resolve_async_request *) nc->user_data;
if (req == NULL) {
return;
}
switch (ev) {
case MG_EV_CONNECT:
case MG_EV_POLL:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment