aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-12-05 15:45:01 +0100
committerMartin Willi <martin@revosec.ch>2012-03-20 17:31:12 +0100
commitbd8700f0553e23f9301e1d13e2a21166dde65a88 (patch)
tree0e5d260d30ad5678fdac80aec0d41956a0def274 /src
parentf4e25e602b44a98d581f4da2daa61c13aa06ad9a (diff)
downloadstrongswan-bd8700f0553e23f9301e1d13e2a21166dde65a88.tar.bz2
strongswan-bd8700f0553e23f9301e1d13e2a21166dde65a88.tar.xz
Don't use unportable htobe64 macro directly
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/encoding/payloads/transform_attribute.c2
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 50b5b77cc..6a6451eb2 100644
--- a/src/libcharon/encoding/payloads/transform_attribute.c
+++ b/src/libcharon/encoding/payloads/transform_attribute.c
@@ -272,7 +272,7 @@ transform_attribute_t *transform_attribute_create_value(payload_type_t type,
}
else
{
- value = htobe64(value);
+ htoun64(&value, value);
this->attribute_value = chunk_clone(chunk_from_thing(value));
this->attribute_length_or_value = sizeof(value);
}