1
0
Fork 0
forked from suyu/suyu

Merge pull request #6801 from spholz/spholz-patch-1

network: fix ternary operator in Socket::SendTo
This commit is contained in:
Morph 2021-08-02 14:56:16 -04:00 committed by GitHub
commit ffe553edbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -570,7 +570,7 @@ std::pair<s32, Errno> Socket::SendTo(u32 flags, const std::vector<u8>& message,
ASSERT(flags == 0);
const sockaddr* to = nullptr;
const int tolen = addr ? 0 : sizeof(sockaddr);
const int tolen = addr ? sizeof(sockaddr) : 0;
sockaddr host_addr_in;
if (addr) {