diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/irm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c index d88475c4..384da7b0 100644 --- a/src/lib/irm.c +++ b/src/lib/irm.c @@ -117,6 +117,9 @@ int irm_bootstrap_ipcp(pid_t pid, config.ipcp_type = conf->type; + if (conf->type != IPCP_UDP) + layer_info.dir_hash_algo = conf->layer_info.dir_hash_algo; + switch (conf->type) { case IPCP_NORMAL: config.has_addr_size = true; @@ -131,7 +134,6 @@ int irm_bootstrap_ipcp(pid_t pid, config.routing_type = conf->routing_type; config.has_pff_type = true; config.pff_type = conf->pff_type; - layer_info.dir_hash_algo = conf->layer_info.dir_hash_algo; break; case IPCP_UDP: config.has_ip_addr = true; |