add missing zero padding
This commit is contained in:
@@ -559,6 +559,7 @@ wxDialUpManagerImpl::NetConnection wxDialUpManagerImpl::CheckConnect()
|
||||
serv_addr.sin_family = hp->h_addrtype;
|
||||
memcpy(&serv_addr.sin_addr,hp->h_addr, hp->h_length);
|
||||
serv_addr.sin_port = htons(m_BeaconPort);
|
||||
memset(&serv_addr.sin_zero, 0, sizeof(serv_addr.sin_zero));
|
||||
|
||||
int sockfd;
|
||||
if( ( sockfd = socket(hp->h_addrtype, SOCK_STREAM, 0)) < 0)
|
||||
|
Reference in New Issue
Block a user