]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
pgsql: support empty parameter values
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 26 Aug 2022 12:02:16 +0000 (14:02 +0200)
committerVictor Julien <vjulien@oisf.net>
Fri, 28 Oct 2022 15:08:03 +0000 (17:08 +0200)
Bug #5579

rust/src/pgsql/parser.rs

index 64fbdc2c1959460406155bc901a96c26d8dff1b0..3a913c40276fa60934ae7b169a88893ef0ca71a3 100644 (file)
@@ -545,7 +545,7 @@ impl From<u8> for PgsqlErrorNoticeFieldType {
 fn pgsql_parse_generic_parameter(i: &[u8]) -> IResult<&[u8], PgsqlParameter> {
     let (i, param_name) = take_until1("\x00")(i)?;
     let (i, _) = tag("\x00")(i)?;
-    let (i, param_value) = take_until1("\x00")(i)?;
+    let (i, param_value) = take_until("\x00")(i)?;
     let (i, _) = tag("\x00")(i)?;
     Ok((i, PgsqlParameter {
         name: PgsqlParameters::from(param_name),