Skip to content

Commit

Permalink
QNativeSocketEngine: fix undefined variable on FreeBSD
Browse files Browse the repository at this point in the history
Change-Id: I192e20eef4db27fc19ec9a6e517ae5c8cb88897c
Reviewed-by: Marc Mutz <[email protected]>
  • Loading branch information
mitya57 committed Jan 2, 2016
1 parent 0828d4e commit 7e13206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/socket/qnativesocketengine_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ qint64 QNativeSocketEnginePrivate::nativeSendDatagram(const char *data, qint64 l
# elif defined(IP_SENDSRCADDR)
struct in_addr *data = reinterpret_cast<in_addr *>(CMSG_DATA(cmsgptr));
cmsgptr->cmsg_type = IP_SENDSRCADDR;
addr->s_addr = htonl(header.senderAddress.toIPv4Address());
data->s_addr = htonl(header.senderAddress.toIPv4Address());
# endif
cmsgptr->cmsg_level = IPPROTO_IP;
msg.msg_controllen += CMSG_SPACE(sizeof(*data));
Expand Down

0 comments on commit 7e13206

Please sign in to comment.