Skip to content

Commit

Permalink
fix(DNS): DNS::hostByAddress not thread-safe #3381
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Aug 23, 2021
1 parent 21e0cf4 commit d77a10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Net/src/DNS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ HostEntry DNS::hostByAddress(const IPAddress& address, unsigned

#if defined(POCO_HAVE_ADDRINFO)
SocketAddress sa(address, 0);
static char fqname[1024];
char fqname[1024];
int rc = getnameinfo(sa.addr(), sa.length(), fqname, sizeof(fqname), NULL, 0, NI_NAMEREQD);
if (rc == 0)
{
Expand Down

0 comments on commit d77a10e

Please sign in to comment.