BUG/MINOR: http: url32+src should use the big endian version of url32
This is similar to the commit 5ad6e1dc ("BUG/MINOR: http: base32+src
should use the big endian version of base32"). Now we convert url32 to big
endian when building the binary block.
This patch needs to be backported to 1.6 and 1.5.
(cherry picked from commit e5f4133b197a57a4043c180b21649ea67c3a2a11)
(cherry picked from commit 8796024c76fa1f583437732110e144592b6a311b)
diff --git a/src/proto_http.c b/src/proto_http.c
index 8801592..ba14e7e 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -11227,8 +11227,8 @@
return 0;
temp = get_trash_chunk();
- memcpy(temp->str + temp->len, &smp->data.uint, sizeof(smp->data.uint));
- temp->len += sizeof(smp->data.uint);
+ *(unsigned int *)temp->str = htonl(smp->data.sint);
+ temp->len += sizeof(unsigned int);
switch (cli_conn->addr.from.ss_family) {
case AF_INET: