]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
bug#3924 fix
authorSupali <supali.kashyap@ericsson.com>
Tue, 5 Oct 2021 14:31:49 +0000 (20:01 +0530)
committerMatthias Runge <mrunge@matthias-runge.de>
Wed, 10 Nov 2021 10:55:35 +0000 (11:55 +0100)
src/ovs_stats.c

index e22e851e2545974d6f24325953ad038b3e2bdba1..7ac65ca25f22153732b7cd40978e84d791adfc62 100644 (file)
@@ -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;