Skip to content

Commit 895625d

Browse files
committed
Fixing typo that broke GCDAsyncUdpSocket when connected to IPv4 address.
1 parent d4b7997 commit 895625d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GCD/GCDAsyncUdpSocket.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ - (BOOL)isConnectedToAddress4:(NSData *)someAddr4
15381538
{
15391539
return NO;
15401540
}
1541-
if (memcmp(&sSockaddr4->sin_port, &cSockaddr4->sin_addr, sizeof(in_port_t)) != 0)
1541+
if (memcmp(&sSockaddr4->sin_port, &cSockaddr4->sin_port, sizeof(in_port_t)) != 0)
15421542
{
15431543
return NO;
15441544
}

0 commit comments

Comments
 (0)