diff options
author | Lukas Larsson <[email protected]> | 2018-12-10 10:49:16 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2019-02-18 20:33:52 +0100 |
commit | 5548b539bbf75f17a178a8352d56d80a5218c6b2 (patch) | |
tree | 9ed5f8d6cc4e03aac2117aadb78cd76be12c0c43 /erts/emulator | |
parent | 615208dc834999db41d03e3259ebd6f8d1afeba1 (diff) | |
download | otp-5548b539bbf75f17a178a8352d56d80a5218c6b2.tar.gz otp-5548b539bbf75f17a178a8352d56d80a5218c6b2.tar.bz2 otp-5548b539bbf75f17a178a8352d56d80a5218c6b2.zip |
erts: Don't increase buffer when sctp sndbuf is set
This is most likely a copy-paste bug that has lived in the code
unnoticed for 5+ years...
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/drivers/common/inet_drv.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c index 2d2ef62bef..a1abeb9cbb 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -7048,10 +7048,6 @@ static int sctp_set_opts(inet_descriptor* desc, char* ptr, int len) arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); - /* Adjust the size of the user-level recv buffer, so it's not - smaller than the kernel one: */ - if (desc->bufsz <= arg.ival) - desc->bufsz = arg.ival; break; } case INET_OPT_REUSEADDR: |