diff options
author | Raimo Niskanen <[email protected]> | 2019-07-03 11:03:28 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2019-07-03 11:25:29 +0200 |
commit | 3710a7c4751781bd09ae520635ebf53f293f96da (patch) | |
tree | e303a7caaaf504e61b169ba0c149d66a33e592bb /erts | |
parent | 39f0bd930bd028c5520da0430056994e4c5925c3 (diff) | |
download | otp-3710a7c4751781bd09ae520635ebf53f293f96da.tar.gz otp-3710a7c4751781bd09ae520635ebf53f293f96da.tar.bz2 otp-3710a7c4751781bd09ae520635ebf53f293f96da.zip |
Remove test code that fails on Windows
Diffstat (limited to 'erts')
-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 1bf6f9f1af..972800ba6f 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -12715,7 +12715,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); @@ -12754,10 +12754,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: */ |