diff options
author | Raimo Niskanen <[email protected]> | 2019-07-08 15:38:00 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2019-07-08 15:38:00 +0200 |
commit | 136200e49b7730807d7071af414b28c8aacff759 (patch) | |
tree | 74d92af609fdffb949cf76d3cd789a9fa8d32ffe /erts/emulator/drivers/common | |
parent | b40524bc9c0be4c11da28435e497c2a7c1f5368e (diff) | |
parent | 68c1f4f98da2194531f9f70cb96f1a8c80850c98 (diff) | |
download | otp-136200e49b7730807d7071af414b28c8aacff759.tar.gz otp-136200e49b7730807d7071af414b28c8aacff759.tar.bz2 otp-136200e49b7730807d7071af414b28c8aacff759.zip |
Merge branch 'raimo/udp-send-TOS/OTP-15422' into maint
* raimo/udp-send-TOS/OTP-15422:
Refine test cases
Remove test code that fails on Windows
Diffstat (limited to 'erts/emulator/drivers/common')
-rw-r--r-- | erts/emulator/drivers/common/inet_drv.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c index 311c5fdd6a..66ff8d8450 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -12733,7 +12733,7 @@ static void packet_inet_command(ErlDrvData e, char* buf, ErlDrvSizeT len) len -= 4; ptr += 4; if (len < anc_len) goto return_einval; - if (anc_len == 0 && !!0/*XXX-short-circuit-for-testing*/) { + if (anc_len == 0) { /* Empty ancillary data */ /* Now "ptr" is the user data ptr, "len" is data length: */ inet_output_count(desc, len); @@ -12772,10 +12772,7 @@ static void packet_inet_command(ErlDrvData e, char* buf, ErlDrvSizeT len) if (compile_ancillary_data(&mhdr, ptr, anc_len) != 0) { goto return_einval; } - if (mhdr.msg_controllen == 0) { - /* XXX Testing - only possible for anc_len == 0 */ - mhdr.msg_control = NULL; - } + ASSERT(mhdr.msg_controllen != 0); len -= anc_len; ptr += anc_len; /* Now "ptr" is the user data ptr, "len" is data length: */ |