From ca07082ff45bca9dca827a515d4b346a2b006a6c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 8 Sep 2020 15:37:35 -0600 Subject: [PATCH] state: fix parsing interface names in ifstate files --- libifupdown/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libifupdown/state.c b/libifupdown/state.c index c2a1a99..06a3f1e 100644 --- a/libifupdown/state.c +++ b/libifupdown/state.c @@ -22,10 +22,10 @@ bool lif_state_read(struct lif_dict *state, FILE *fd) { char linebuf[4096]; - char *bufp = linebuf; while (lif_fgetline(linebuf, sizeof linebuf, fd)) { + char *bufp = linebuf; char *ifname = lif_next_token(&bufp); char *refcount = lif_next_token(&bufp); size_t rc = 1;