From 91a642385e2d068d106aa5c307de968f8b33add5 Mon Sep 17 00:00:00 2001 From: Supali Date: Tue, 5 Oct 2021 20:01:49 +0530 Subject: [PATCH] bug#3924 fix --- src/ovs_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ovs_stats.c b/src/ovs_stats.c index e22e851e25..7ac65ca25f 100644 --- a/src/ovs_stats.c +++ b/src/ovs_stats.c @@ -1090,8 +1090,8 @@ static int ovs_stats_del_interface(const char *uuid) { interface_list_t *prev_iface = NULL; for (interface_list_t *iface = port->iface; iface != NULL; - iface = port->iface) { - if (strncmp(iface->iface_uuid, uuid, strlen(iface->iface_uuid))) { + iface = iface->next) { + if (!strncmp(iface->iface_uuid, uuid, strlen(iface->iface_uuid))) { interface_list_t *del = iface;