fix for logic bug in ldap base script

This commit is contained in:
Vern Paxson 2024-01-10 18:44:36 -08:00 committed by Arne Welzel
parent 24e182f080
commit 501bf167c3

View file

@ -203,7 +203,7 @@ event LDAP::message(c: connection,
}
if ( diagnostic_message != "" ) {
if ( ! sm?$diagnostic_message && sm$diagnostic_message != diagnostic_message ) {
if ( sm?$diagnostic_message && sm$diagnostic_message != diagnostic_message ) {
Reporter::conn_weird("LDAP_search_diagnostic_message_change", c,
fmt("%s: %s -> %s", message_id, sm$diagnostic_message, diagnostic_message), "LDAP");
}