Skip to content

Commit 44f7d2a

Browse files
mercury233Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 22acfc2 commit 44f7d2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gframe/duelclient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4275,7 +4275,7 @@ unsigned int DuelClient::ResolveHostName(const char* hostname, const char* port)
42754275
if(evutil_getaddrinfo(hostname, port, &hints, &answer) != 0 || answer == nullptr) {
42764276
return 0;
42774277
}
4278-
if(!answer->ai_addr) {
4278+
if(!answer->ai_addr || answer->ai_addrlen < sizeof(sockaddr_in) || answer->ai_family != AF_INET) {
42794279
evutil_freeaddrinfo(answer);
42804280
return 0;
42814281
}

0 commit comments

Comments
 (0)