[haiku-commits] haiku: hrev45154 - src/add-ons/kernel/network/protocols/ipv6

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 14 Jan 2013 12:16:08 +0100 (CET)

hrev45154 adds 1 changeset to branch 'master'
old head: b4fdcd5e54b23457ac79118fd629d2ac4c3a8cdb
new head: 06d477cd643dd602787aeecfb8985a157605fedd
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=06d477c+%5Eb4fdcd5

----------------------------------------------------------------------------

06d477c: ipv6: added missing put_interface() call.
  
  * Thanks to Stefano for pointing this out!

                                   [ Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45154
Commit:      06d477cd643dd602787aeecfb8985a157605fedd
URL:         http://cgit.haiku-os.org/haiku/commit/?id=06d477c
Author:      Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
Date:        Mon Jan 14 11:15:14 2013 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+)
src/add-ons/kernel/network/protocols/ipv6/ipv6.cpp | 2 ++

----------------------------------------------------------------------------

diff --git a/src/add-ons/kernel/network/protocols/ipv6/ipv6.cpp 
b/src/add-ons/kernel/network/protocols/ipv6/ipv6.cpp
index 177b91f..0a5120f 100644
--- a/src/add-ons/kernel/network/protocols/ipv6/ipv6.cpp
+++ b/src/add-ons/kernel/network/protocols/ipv6/ipv6.cpp
@@ -1141,6 +1141,8 @@ ipv6_setsockopt(net_protocol* _protocol, int level, int 
option,
 
                        delete protocol->multicast_address;
                        protocol->multicast_address = (struct sockaddr*)address;
+
+                       sDatalinkModule->put_interface(interface);
                        return B_OK;
                }
                if (option == IPV6_MULTICAST_HOPS) {


Other related posts:

  • » [haiku-commits] haiku: hrev45154 - src/add-ons/kernel/network/protocols/ipv6 - axeld