From 328078c1ee01d64733328b3dad3e7db68dcd6d2d Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Fri, 11 Mar 2016 17:04:03 +0100 Subject: irmd: Remove wrong copy A NULL pointer was being passed instead of the actual name of the IPCP. --- src/irmd/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/irmd/main.c') diff --git a/src/irmd/main.c b/src/irmd/main.c index e28e6a28..9a072382 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -70,7 +70,6 @@ static void create_ipcp(struct irm * instance, { int pid; struct name_to_pid_entry * tmp; - rina_name_t * ipcp_name = NULL; pid = ipcp_create(name, ipcp_type); if (pid == 0) { @@ -85,7 +84,7 @@ static void create_ipcp(struct irm * instance, INIT_LIST_HEAD(&tmp->next); tmp->pid = pid; - tmp->name = name_dup(ipcp_name); + tmp->name = name_dup(&name); if (tmp->name == NULL) { free(tmp); return; -- cgit v1.2.3