summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-09-06 13:48:39 +0200
committerSander Vrijders <[email protected]>2016-09-06 13:48:39 +0200
commit4645f409abe9916723baeae7f6ba164c3b69489c (patch)
tree2bfacd81b564509b7ada26eb30c8e3217dc1925f /src
parent4dea61591296dfe2880396d129011b6366328e21 (diff)
parent71355cebec5db2a6d56ac864104476adc069dcf4 (diff)
downloadouroboros-4645f409abe9916723baeae7f6ba164c3b69489c.tar.gz
ouroboros-4645f409abe9916723baeae7f6ba164c3b69489c.zip
Merged in dstaesse/ouroboros/be-irmd-fix (pull request #244)
irmd: Fix register with unenrolled IPCPs in system
Diffstat (limited to 'src')
-rw-r--r--src/irmd/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index a4962c3b..8a05017a 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -212,6 +212,9 @@ static pid_t get_ipcp_by_dst_name(char * dst_name)
list_for_each(p, &irmd->ipcps) {
struct ipcp_entry * e = list_entry(p, struct ipcp_entry, next);
+ if (e->dif_name == NULL)
+ continue;
+
if (strcmp(e->dif_name, dif_name) == 0)
return e->api;
}