summaryrefslogtreecommitdiff
path: root/erts/emulator/drivers
diff options
context:
space:
mode:
authorRaimo Niskanen <raimo@erlang.org>2023-03-14 11:13:55 +0100
committerRaimo Niskanen <raimo@erlang.org>2023-03-16 13:19:11 +0100
commit4bcf7b0b94a6d80050daf034ec2c6ce58daf314d (patch)
treeb0db887307943d91f79cad07c5a3a0a54854d449 /erts/emulator/drivers
parent80085aa478ca2d7cef6c67953899a963ad21743e (diff)
downloaderlang-4bcf7b0b94a6d80050daf034ec2c6ce58daf314d.tar.gz
Fail noisily for error between prim_inet and inet_drv
Diffstat (limited to 'erts/emulator/drivers')
-rw-r--r--erts/emulator/drivers/common/inet_drv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c
index c300e3760e..a902fd27ad 100644
--- a/erts/emulator/drivers/common/inet_drv.c
+++ b/erts/emulator/drivers/common/inet_drv.c
@@ -12121,7 +12121,7 @@ static void tcp_inet_command(ErlDrvData e, char *buf, ErlDrvSizeT len)
if (! init_caller(&inetp->caller, &inetp->caller_ref,
inetp->port, &buf, &len)) {
- inet_reply_error(inetp, EINVAL);
+ driver_failure_posix(inetp->port, EINVAL);
return;
}
@@ -12152,7 +12152,7 @@ static void tcp_inet_commandv(ErlDrvData e, ErlIOVec *ev)
if (! init_caller_iov(&inetp->caller, &inetp->caller_ref,
inetp->port, &ev->iov, &ev->size)) {
- inet_reply_error(inetp, EINVAL);
+ driver_failure_posix(inetp->port, EINVAL);
return;
}
@@ -14439,7 +14439,7 @@ static void packet_inet_command(ErlDrvData e, char* buf, ErlDrvSizeT len)
if (! init_caller(&desc->caller, &desc->caller_ref,
desc->port, &buf, &len)) {
- inet_reply_error(desc, EINVAL);
+ driver_failure_posix(desc->port, EINVAL);
return;
}
ptr = buf;