From b81d5a327d272db9b511217665b5febceccb725d Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 1 Apr 2018 13:01:53 +0200 Subject: tools: Fix hash algorithm in ipcp_bootstrap A bad check caused failure to set the hash algorithm for IPCPs. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/tools/irm/irm_ipcp_bootstrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tools/irm/irm_ipcp_bootstrap.c b/src/tools/irm/irm_ipcp_bootstrap.c index 9cf6514e..8c01569b 100644 --- a/src/tools/irm/irm_ipcp_bootstrap.c +++ b/src/tools/irm/irm_ipcp_bootstrap.c @@ -290,7 +290,7 @@ int do_bootstrap_ipcp(int argc, } strcpy(conf.layer_info.layer_name, layer); - if (conf.type == IPCP_UDP) + if (conf.type != IPCP_UDP) conf.layer_info.dir_hash_algo = hash_algo; switch (conf.type) { -- cgit v1.2.3