]> git.ipfire.org Git - thirdparty/suricata.git/commit
pgsql: fix defect found by coverity 6854/head
authorJuliana Fajardini <jufajardini@gmail.com>
Fri, 21 Jan 2022 11:47:15 +0000 (11:47 +0000)
committerVictor Julien <vjulien@oisf.net>
Mon, 24 Jan 2022 10:32:19 +0000 (11:32 +0100)
commit0bf1227f0f061930cfdb751db5f055f20fb819a7
tree511e3e0e800e4fe97e71cfc2929f9c01e9e31849
parent59ac1fe277b0dc2fc2b6c1739c10eb58a0d48cba
pgsql: fix defect found by coverity

Pgsql was using bitwise operations to assign password output config to
its context flags, but mixing that with logic negation of the default
value, resulting in the expressions having a constant value as result.

Bug: #5007
rust/src/pgsql/logger.rs
src/output-json-pgsql.c