Reduce size of UDP remote context

This commit is contained in:
Max Lv
2019-03-24 22:15:25 -04:00
parent 71cc0fb362
commit f35c162357
6 changed files with 25 additions and 22 deletions
+1 -1
View File
@@ -966,7 +966,7 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
memset(query, 0, sizeof(query_t));
query->server = server;
server->query = query;
snprintf(query->hostname, 257, "%s", host);
snprintf(query->hostname, MAX_HOSTNAME_LEN, "%s", host);
server->stage = STAGE_RESOLVE;
resolv_start(host, port, resolv_cb, resolv_free_cb, query);