summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-02-03 14:26:13 +0100
committerDimitri Staessens <dimitri.staessens@ugent.be>2018-02-03 22:59:35 +0100
commit3db51adc7cceaf810dc8312ff95e9d8ccb96154b (patch)
treecb64e4d1a367197c57d9867b7782236dd75c6970 /src/tools
parent83f9bdda86ad6e9b2e0ec04e130cf1d32d79a7c6 (diff)
downloadouroboros-0.9.7.tar.gz
ouroboros-0.9.7.zip
tools: Fix check for return value in irm tool0.9.7
A check was done in the irm tool for the pid of a newly created IPCP, but it didn't catch all failures, this fixes that. Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be> Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/irm/irm_ipcp_bootstrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/irm/irm_ipcp_bootstrap.c b/src/tools/irm/irm_ipcp_bootstrap.c
index affe35a1..2acb6516 100644
--- a/src/tools/irm/irm_ipcp_bootstrap.c
+++ b/src/tools/irm/irm_ipcp_bootstrap.c
@@ -259,7 +259,7 @@ int do_bootstrap_ipcp(int argc,
len = irm_list_ipcps(name, &pids);
if (len <= 0) {
pid = irm_create_ipcp(name, conf.type);
- if (pid== 0)
+ if (pid <= 0)
return -1;
len = irm_list_ipcps(name, &pids);
}