diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2014-04-09 17:09:55 +0200 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2014-04-09 17:09:55 +0200 |
| commit | 8d34e55375a5449624665eca75db82a01b1389ce (patch) | |
| tree | 492cfcb81a05982f1299559508d6be754a85be20 /src/libcharon/plugins/socket_default/socket_default_socket.h | |
| parent | f738753abca628443d0d7b6fa42d79098579f080 (diff) | |
| download | strongswan-8d34e55375a5449624665eca75db82a01b1389ce.tar.bz2 strongswan-8d34e55375a5449624665eca75db82a01b1389ce.tar.xz | |
attr: Don't shift the 32-bit netmask by 32
This is undefined behavior as per the C99 standard (sentence 1185):
"If the value of the right operand is negative or is greater or equal
to the width of the promoted left operand, the behavior is undefined."
Apparently shifts may be done modulo the width on some platforms so
a shift by 32 would not shift at all.
Diffstat (limited to 'src/libcharon/plugins/socket_default/socket_default_socket.h')
0 files changed, 0 insertions, 0 deletions
