From 3e160e27e4686620d16477a9ea9cf00141e52ce7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 10:41:51 +0200 Subject: Adding upstream version 3.9.0. Signed-off-by: Daniel Baumann --- src/postcat/postcat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/postcat') diff --git a/src/postcat/postcat.c b/src/postcat/postcat.c index 36f2740..26b46a9 100644 --- a/src/postcat/postcat.c +++ b/src/postcat/postcat.c @@ -76,7 +76,7 @@ /* The default location of the Postfix main.cf and master.cf /* configuration files. /* .IP "\fBimport_environment (see 'postconf -d' output)\fR" -/* The list of environment parameters that a privileged Postfix +/* The list of environment variables that a privileged Postfix /* process will import from a non-Postfix parent process, or name=value /* environment overrides. /* .IP "\fBqueue_directory (see 'postconf -d' output)\fR" @@ -274,7 +274,7 @@ static void postcat(VSTREAM *fp, VSTRING *buffer, int flags) break; /* Optimization: skip to extracted segment marker. */ if (do_print == 0 && (flags & PC_FLAG_PRINT_ENV) - && data_offset >= 0 && data_size >= 0 + && data_offset > 0 && data_size >= 0 && vstream_fseek(fp, data_offset + data_size, SEEK_SET) < 0) msg_fatal("seek error: %m"); } @@ -289,7 +289,7 @@ static void postcat(VSTREAM *fp, VSTRING *buffer, int flags) PRINT_MARKER(flags, fp, offset, rec_type, "MESSAGE CONTENTS"); /* Optimization: skip to extracted segment marker. */ if ((flags & PC_MASK_PRINT_TEXT) == 0 - && data_offset >= 0 && data_size >= 0 + && data_offset > 0 && data_size >= 0 && vstream_fseek(fp, data_offset + data_size, SEEK_SET) < 0) msg_fatal("seek error: %m"); /* Update the state machine, even when skipping. */ -- cgit v1.2.3