Skip to content
Snippets Groups Projects
Commit 124b1f3f authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Trivial byte order bugfix.


This commit makes sure that the udp length is verified in
host byte order.

Signed-off-by: default avatarMichael Tuexen <tuexen@fh-muenster.de>
parent d799c219
No related branches found
No related tags found
No related merge requests found
...@@ -821,8 +821,8 @@ static int verify_udp( ...@@ -821,8 +821,8 @@ static int verify_udp(
const struct udp *script_udp = script_packet->headers[layer].h.udp; const struct udp *script_udp = script_packet->headers[layer].h.udp;
if (check_field("udp_len", if (check_field("udp_len",
script_udp->len, ntohs(script_udp->len),
actual_udp->len, error)) ntohs(actual_udp->len), error))
return STATUS_ERR; return STATUS_ERR;
return STATUS_OK; return STATUS_OK;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment