diff options
author | Sverker Eriksson <[email protected]> | 2013-02-07 15:22:11 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-02-07 15:22:11 +0100 |
commit | a3c0a422f66b2e08f02333aa2dd441eebab56e2d (patch) | |
tree | 571a49667e6cd6c384db0cb430657891ecf1fd26 /erts | |
parent | 6aa9e71dbb279a172b5a2c86f28cbfada1b68080 (diff) | |
download | otp-a3c0a422f66b2e08f02333aa2dd441eebab56e2d.tar.gz otp-a3c0a422f66b2e08f02333aa2dd441eebab56e2d.tar.bz2 otp-a3c0a422f66b2e08f02333aa2dd441eebab56e2d.zip |
inet_drv: Fix condition to reject INET_REQ_IGNOREFD for UDP and SCTP
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/drivers/common/inet_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c index b9341b168d..f1211128bf 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -7833,7 +7833,7 @@ static ErlDrvSSizeT inet_ctl(inet_descriptor* desc, int cmd, char* buf, if (!IS_CONNECTED(desc)) return ctl_error(ENOTCONN, rbuf, rsize); - if (!desc->stype == SOCK_STREAM) + if (desc->stype != SOCK_STREAM) return ctl_error(EINVAL, rbuf, rsize); if (*buf == 1 && !desc->is_ignored) { |