X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fdcc.c;h=56dd6d570c1da1bf99e8d96e1cda51b0befb5a6e;hb=6b331d5834d12bdda21857cd6fffac17038ce3c7;hp=fe2e1340fc8c470003a0ba7161857dbd94b928c0;hpb=2d6186e106b8cfc1d8f39355495e601832e92c56;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/dcc.c b/src/src/dcc.c index fe2e1340f..56dd6d570 100644 --- a/src/src/dcc.c +++ b/src/src/dcc.c @@ -7,13 +7,17 @@ * 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 - 2022 */ /* Code for calling dccifd. Called from acl.c. */ #include "exim.h" #ifdef EXPERIMENTAL_DCC +#ifndef WITH_CONTENT_SCAN +# error EXPERIMENTAL_DCC requires WITH_CONTENT_SCAN +#endif + #include "dcc.h" #include "unistd.h" @@ -333,7 +337,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 */