diff options
-rw-r--r-- | src/libcharon/encoding/payloads/transform_attribute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/encoding/payloads/transform_attribute.c b/src/libcharon/encoding/payloads/transform_attribute.c index 6a6451eb2..a11ee98a4 100644 --- a/src/libcharon/encoding/payloads/transform_attribute.c +++ b/src/libcharon/encoding/payloads/transform_attribute.c @@ -199,7 +199,7 @@ METHOD(transform_attribute_t, get_value, u_int64_t, } memcpy(((char*)&value) + sizeof(value) - this->attribute_value.len, this->attribute_value.ptr, this->attribute_value.len); - return be64toh(value); + return untoh64((char*)&value); } METHOD(transform_attribute_t, get_attribute_type, u_int16_t, |