starter48
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/udprelay.c
|
|
@ -316,7 +316,7 @@ parse_udprelay_header(const char *buf, const size_t buf_len, |
|
|
|
} |
|
|
|
|
|
|
|
if (port != NULL) { |
|
|
|
sprintf(port, "%d", load16_be(buf + offset)); |
|
|
|
sprintf(port, "%d", ntohs(*(uint16_t*)(buf + offset))); |
|
|
|
} |
|
|
|
offset += 2; |
|
|
|
|
|
|
|