[haiku-commits] Change in haiku[master]: ipv4: IP_ADD_MEMBERSHIP twice should return EADDRINUSE

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 25 Nov 2020 15:43:48 +0000

From Jérôme Duval <jerome.duval@xxxxxxxxx>:

Jérôme Duval has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3418 ;)


Change subject: ipv4: IP_ADD_MEMBERSHIP twice should return EADDRINUSE
......................................................................

ipv4: IP_ADD_MEMBERSHIP twice should return EADDRINUSE

also IP_ADD_SOURCE_MEMBERSHIP
---
M src/add-ons/kernel/network/protocols/ipv4/multicast.cpp
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/18/3418/1

diff --git a/src/add-ons/kernel/network/protocols/ipv4/multicast.cpp 
b/src/add-ons/kernel/network/protocols/ipv4/multicast.cpp
index 4cedcd5..94a87cf 100644
--- a/src/add-ons/kernel/network/protocols/ipv4/multicast.cpp
+++ b/src/add-ons/kernel/network/protocols/ipv4/multicast.cpp
@@ -195,7 +195,8 @@
                        return status;
                }

-       }
+       } else if (create)
+               return EADDRINUSE;

        return B_OK;
 }

--
To view, visit https://review.haiku-os.org/c/haiku/+/3418
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: Icc9af4fc7ffe6457ca968fad3fba46f0942a9e3f
Gerrit-Change-Number: 3418
Gerrit-PatchSet: 1
Gerrit-Owner: Jérôme Duval <jerome.duval@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: ipv4: IP_ADD_MEMBERSHIP twice should return EADDRINUSE - Gerrit