X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/2d6186e106b8cfc1d8f39355495e601832e92c56..4bb241788d6183df9df6b11a6e6071734b65fce1:/src/src/dcc.c diff --git a/src/src/dcc.c b/src/src/dcc.c index fe2e1340f..a9124a013 100644 --- a/src/src/dcc.c +++ b/src/src/dcc.c @@ -7,7 +7,7 @@ * wbreyha@gmx.net * See the file NOTICE for conditions of use and distribution. * - * Copyright (c) The Exim Maintainers 2015 - 2019 + * Copyright (c) The Exim Maintainers 2015 - 2021 */ /* Code for calling dccifd. Called from acl.c. */ @@ -333,7 +333,7 @@ while((dcc_resplen = read(sockfd, big_buffer, big_buffer_size-1)) > 0) "DCC: -----------------------------------\n", dcc_resplen, dcc_resplen, big_buffer); /* Now let's read each character and see what we've got */ - for(bufoffset = 0; bufoffset < dcc_resplen, line <= 2; bufoffset++) + for(bufoffset = 0; bufoffset < dcc_resplen && line <= 2; bufoffset++) { /* First check if we reached the end of the line and then increment the line counter */