vici: Properly handle absence of peer ID on mediation connections
Fixes #2794.
This commit is contained in:
parent
46bea1add9
commit
6e9cfe9751
|
@ -2494,8 +2494,11 @@ CALLBACK(config_sn, bool,
|
|||
if (peer.mediated_by)
|
||||
{
|
||||
cfg.mediated_by = peer.mediated_by;
|
||||
if (peer.peer_id)
|
||||
{
|
||||
cfg.peer_id = peer.peer_id->clone(peer.peer_id);
|
||||
}
|
||||
}
|
||||
#endif /* ME */
|
||||
peer_cfg = peer_cfg_create(name, ike_cfg, &cfg);
|
||||
|
||||
|
|
Loading…
Reference in New Issue