Skip to content

Commit 8a08a8e

Browse files
authored
Update ksDomainQuery.cpp
1 parent 55c9421 commit 8a08a8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ksf/misc/ksDomainQuery.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ namespace ksf::misc
121121
return;
122122

123123
/* Read the UDP packet. */
124+
uint8_t buffer[MAX_DNS_UDP_PACKET_SIZE];
124125
auto len{static_cast<std::size_t>(udp->read(buffer, MAX_DNS_UDP_PACKET_SIZE))};
125126
if (len < 12 || len > MAX_DNS_UDP_PACKET_SIZE)
126127
return;

0 commit comments

Comments
 (0)