diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-11-02 16:22:38 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-11-09 16:43:21 +0100 |
commit | 47e113a63905305fdb7eee8304a5eb1adcb216d4 (patch) | |
tree | 768ae0d047d6989b01de795cb1015618f58e99a5 /src/libhydra/kernel/kernel_ipsec.h | |
parent | 99747bed8f0aea9427bd17820dbde79342bb9ce9 (diff) | |
download | strongswan-47e113a63905305fdb7eee8304a5eb1adcb216d4.tar.bz2 strongswan-47e113a63905305fdb7eee8304a5eb1adcb216d4.tar.xz |
socket-default: Refactor setting source address when sending messages
This ensures we don't pass data (via msg_control) defined in a different
scope to sendmsg(). Actually, some compilers (e.g. GCC 5.2.1) might
optimize the memcpy() call away causing the packets not to get sent from
the intended source address.
It also makes the code clearer than with all these ifdefs.
Fixes #1171.
Diffstat (limited to 'src/libhydra/kernel/kernel_ipsec.h')
0 files changed, 0 insertions, 0 deletions