diff options
Diffstat (limited to 'main/openvpn/src/openvpn/mudp.c')
-rw-r--r-- | main/openvpn/src/openvpn/mudp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/openvpn/src/openvpn/mudp.c b/main/openvpn/src/openvpn/mudp.c index f7ab6253..7a6911ca 100644 --- a/main/openvpn/src/openvpn/mudp.c +++ b/main/openvpn/src/openvpn/mudp.c @@ -112,7 +112,7 @@ multi_get_create_instance_udp (struct multi_context *m) if (op == P_DATA_V2) { - sess_id = (*(uint32_t*)ptr) >> 8; + sess_id = ntohl((*(uint32_t*)ptr)) & 0xFFFFFF; if ((sess_id < m->max_clients) && (m->instances[sess_id])) { mi = m->instances[sess_id]; |