]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
liblib: Don't try to send a log prefix to log process if there is none.
authorTimo Sirainen <tss@iki.fi>
Thu, 30 Jun 2011 04:26:01 +0000 (07:26 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 30 Jun 2011 04:26:01 +0000 (07:26 +0300)
src/lib/failures.c

index d75341315391cfe3c52b5a6e2af2b20ffebd5638..45d45d090a3b3b12b551b33098f8a3d522d815ef 100644 (file)
@@ -565,7 +565,7 @@ internal_handler(const struct failure_context *ctx,
                string_t *str;
                unsigned int prefix_len;
 
-               if (!log_prefix_sent) {
+               if (!log_prefix_sent && log_prefix != NULL) {
                        log_prefix_sent = TRUE;
                        i_failure_send_option("prefix", log_prefix);
                }