Commit e5972b22 authored by David Bird's avatar David Bird Committed by GitHub
Browse files

Merge pull request #303 from pinkra/master

Fix answer buffer size to avoid chilli crash.
parents 6a3bee1d d12dd777
......@@ -1623,7 +1623,7 @@ int dhcp_nakDNS(struct dhcp_conn_t *conn, uint8_t *pack, size_t len) {
struct pkt_iphdr_t *iph = pkt_iphdr(pack);
struct pkt_udphdr_t *udph = pkt_udphdr(pack);
uint8_t answer[1500];
uint8_t answer[len];
struct pkt_ethhdr_t *answer_ethh;
struct pkt_iphdr_t *answer_iph;
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