Don't use unportable htobe64 macro directly
authorMartin Willi <martin@revosec.ch>
Mon, 5 Dec 2011 14:45:01 +0000 (15:45 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:12 +0000 (17:31 +0100)
src/libcharon/encoding/payloads/transform_attribute.c

index 50b5b77..6a6451e 100644 (file)
@@ -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);
        }