From 74ee677b4149cde417170b50fb630f4aa4c83898 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 5 May 2017 19:09:57 +0000 Subject: [PATCH] fix pointer mistake --- lib/nodes/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nodes/socket.c b/lib/nodes/socket.c index 2a3f564bf..f57cccbb8 100644 --- a/lib/nodes/socket.c +++ b/lib/nodes/socket.c @@ -87,8 +87,8 @@ int socket_init(struct super_node *sn) if (ret) continue; - list_push(&interfaces, memdup(&j, sizeof(j))); - i = &j; + i = memdup(&j, sizeof(j)); + list_push(&interfaces, i); found: list_push(&i->sockets, s); }