mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
Fixed untoh32 function
This commit is contained in:
parent
925eadba5f
commit
f8f4f31a77
@ -390,7 +390,7 @@ static inline u_int32_t untoh32(void *network)
|
|||||||
u_int32_t tmp;
|
u_int32_t tmp;
|
||||||
|
|
||||||
memcpy(&tmp, network, sizeof(tmp));
|
memcpy(&tmp, network, sizeof(tmp));
|
||||||
return ntohs(tmp);
|
return ntohl(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user