mirror of
https://github.com/curl/curl.git
synced 2026-07-26 17:37:16 +03:00
unit3400: repair after capsule_encap_udp_hdr went static
Access the static function with UNITTEST as designed.
Follow-up to 73c2b4b435
Closes #21788
This commit is contained in:
parent
59320082b0
commit
d1b482caec
3 changed files with 10 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ static void check_capsule_hdr(size_t payload_len,
|
|||
size_t hdr_len;
|
||||
|
||||
memset(hdr, 0xA5, sizeof(hdr));
|
||||
hdr_len = Curl_capsule_encap_udp_hdr(hdr, sizeof(hdr), payload_len);
|
||||
hdr_len = capsule_encap_udp_hdr(hdr, sizeof(hdr), payload_len);
|
||||
fail_unless(hdr_len == expected_len, "capsule header length mismatch");
|
||||
fail_unless(!memcmp(hdr, expected, expected_len),
|
||||
"capsule header bytes mismatch");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue