updown: Return an empty DNS server enumerator if no IKE_SA available
The one existing caller does not handle a NULL return and always expects an enumerator; and returning FALSE does not make sense anyway.
This commit is contained in:
1 parent
fe40c47547
commit
ac2dc3b726
1 file changed
+1
-1
@@ -188,7 +188,7 @@ METHOD(updown_handler_t, create_dns_enumerator, enumerator_t*,
|
||||
ike_sa = charon->bus->get_sa(charon->bus);
|
||||
if (!ike_sa)
|
||||
{
|
||||
return FALSE;
|
||||
return enumerator_create_empty();
|
||||
}
|
||||
|
||||
this->lock->read_lock(this->lock);
|
||||
|
||||
Reference in new issue
Block a user