mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-15 00:00:16 -04:00
Properly initialize linked list when enumerating interface addresses
This commit is contained in:
parent
6a25122bfc
commit
12e70a7efc
@ -631,6 +631,7 @@ static VALUE iface_each_addr(int argc, VALUE *argv, VALUE self)
|
||||
{
|
||||
rb_raise(rb_eArgError, "must be called with a block");
|
||||
}
|
||||
list = linked_list_create();
|
||||
Data_Get_Struct(self, iface_t, iface);
|
||||
enumerator = iface->create_address_enumerator(iface);
|
||||
while (enumerator->enumerate(enumerator, &addr))
|
||||
|
Loading…
x
Reference in New Issue
Block a user