Fix ticket #8870.
- multicast_address was being freed twice in ipv6_uninit_protocol(), causing a panic on exit in apps that made use of it.
This commit is contained in:
parent
ac827a2baa
commit
9db38fdf34
@ -184,6 +184,11 @@ struct ipv6_protocol : net_protocol {
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~ipv6_protocol()
|
||||||
|
{
|
||||||
|
delete raw;
|
||||||
|
}
|
||||||
|
|
||||||
RawSocket *raw;
|
RawSocket *raw;
|
||||||
uint8 service_type;
|
uint8 service_type;
|
||||||
uint8 time_to_live;
|
uint8 time_to_live;
|
||||||
@ -974,8 +979,6 @@ ipv6_uninit_protocol(net_protocol* _protocol)
|
|||||||
{
|
{
|
||||||
ipv6_protocol* protocol = (ipv6_protocol*)_protocol;
|
ipv6_protocol* protocol = (ipv6_protocol*)_protocol;
|
||||||
|
|
||||||
delete protocol->raw;
|
|
||||||
delete protocol->multicast_address;
|
|
||||||
delete protocol;
|
delete protocol;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user