aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/input/ipaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 9a80d8e..bbdc5af 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -194,7 +194,7 @@ static int ipaccess_rcvmsg(struct e1inp_line *line, struct msgb *msg,
newbfd = &ts->driver.ipaccess.fd;
/* get rid of our old temporary bfd */
- memcpy(&newbfd->list, &bfd->list, sizeof(newbfd->list));
+ INIT_LLIST_HEAD(&newbfd->list);
newbfd->fd = bfd->fd;
newbfd->when |= bfd->when; /* preserve 'newbfd->when' flags potentially set by sign_link_up() */
newbfd->cb = bfd->cb;