summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-03-11 17:04:03 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-03-11 17:04:03 +0100
commit328078c1ee01d64733328b3dad3e7db68dcd6d2d (patch)
treee37582961e744a7d56e29c134ba147df2da1a061 /src/irmd/main.c
parentbf5157839b3fed718ef8a5d1bb20f5290866a9cd (diff)
downloadouroboros-328078c1ee01d64733328b3dad3e7db68dcd6d2d.tar.gz
ouroboros-328078c1ee01d64733328b3dad3e7db68dcd6d2d.zip
irmd: Remove wrong copy
A NULL pointer was being passed instead of the actual name of the IPCP.
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c3
1 files changed, 1 insertions, 2 deletions
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;