fix xua_msg_dump(): convert message length to the host's byte order
This fixes bogus messages like this one: Received MGMT_ERR 'Invalid Routing Context': HDR=(MGMT:ERROR,V=1,LEN=268435456), PART(T=Error Code,L=4,D=00000019) ^^^^^^^^^^^^^ Change-Id: I516e486fb7b51a25e33965ed5a0f12ab4488d240
This commit is contained in:
parent
5e80ca8083
commit
1c155860ea
|
@ -531,7 +531,7 @@ char *xua_msg_dump(struct xua_msg *xua, const struct xua_dialect *dialect)
|
|||
buf[0] = '\0';
|
||||
|
||||
OSMO_STRBUF_PRINTF(sb, "HDR=(%s,V=%u,LEN=%u)", xua_hdr_dump(xua, dialect),
|
||||
xua->hdr.version, xua->hdr.msg_length);
|
||||
xua->hdr.version, ntohl(xua->hdr.msg_length));
|
||||
|
||||
llist_for_each_entry(part, &xua->headers, entry)
|
||||
OSMO_STRBUF_PRINTF(sb, ", PART(T=%s,L=%u,D=%s)",
|
||||
|
|
Loading…
Reference in New Issue