Skip to content

Commit

Permalink
add missing zero padding
Browse files Browse the repository at this point in the history
  • Loading branch information
mpw96 committed Jun 21, 2017
1 parent 25ce17c commit 3e9c24f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/dialup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e9c24f

Please sign in to comment.