]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ldap: reset tx_index_completed on tx removal
authorPhilippe Antoine <pantoine@oisf.net>
Sat, 20 Jul 2024 12:44:45 +0000 (14:44 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Jul 2024 04:14:11 +0000 (06:14 +0200)
So, that this index does not overflow

rust/src/ldap/ldap.rs

index 0817b4c9fba5e2bf3deb5a9f04dbf7bc9e9d7663..47440230364a332f4b57c34fb6aaebd7f9f21e40 100644 (file)
@@ -115,6 +115,7 @@ impl LdapState {
             }
         }
         if found {
+            self.tx_index_completed = 0;
             self.transactions.remove(index);
         }
     }