From: Aki Tuomi Date: Wed, 19 Oct 2016 13:31:01 +0000 (+0300) Subject: lib-program-client: Fix memory access problem X-Git-Tag: 2.2.26~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffab4d100a52928c2e594f40ee81ae97284d14df;p=thirdparty%2Fdovecot%2Fcore.git lib-program-client: Fix memory access problem --- diff --git a/src/lib-program-client/program-client.c b/src/lib-program-client/program-client.c index c1eb91880f..edf14f42da 100644 --- a/src/lib-program-client/program-client.c +++ b/src/lib-program-client/program-client.c @@ -342,7 +342,7 @@ void program_client_program_input(struct program_client *pclient) } if (program_client_input_pending(pclient)) return; - if (!input->eof) { + if (pclient->program_input != NULL && !input->eof) { program_client_fail(pclient, PROGRAM_CLIENT_ERROR_IO); return;