From c3621094470638330855b87a32ecb3067ab58282 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Fri, 24 Feb 2017 11:05:25 +0100 Subject: irmd: Fix bug in name comparison of IPCPs --- src/irmd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/irmd/main.c b/src/irmd/main.c index f6328979..658a08f6 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -187,7 +187,7 @@ static struct ipcp_entry * get_ipcp_entry_by_name(const char * name) list_for_each(p, &irmd->ipcps) { struct ipcp_entry * e = list_entry(p, struct ipcp_entry, next); - if (strcmp(name, e->name)) + if (strcmp(name, e->name) == 0) return e; } -- cgit v1.2.3