diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-05-23 14:50:43 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-05-23 15:13:55 +0200 |
commit | 603ab8fd8bee5b495d995701aee0b8b417b63817 (patch) | |
tree | 57e38e81ddbb063d4c9ba9163da8709820db3b86 | |
parent | 7b89f12e66a280746fc8e7906505b2d769d19706 (diff) |
ipaccess: ipaccess_rcvmsg: Drop unneeded memcpy
Those values are not used anymore, since the old bfd is unregistered and
the values for the new one will be overwritten by osmo_fd_register.
Change-Id: I7ac74843cbed920a2fdc6ade7aef4d4de905939a
-rw-r--r-- | src/input/ipaccess.c | 2 |
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; |