X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fauths%2Fpwcheck.c;h=7dd529fbcc1516293d7d8126c8506a507d7ec996;hb=6b331d5834d12bdda21857cd6fffac17038ce3c7;hp=54ba80f92ab9881e92c1ffde53e1ed7a2786b56b;hpb=d5b80e59458182b2d557a929a18cb8c70cd56b68;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/auths/pwcheck.c b/src/src/auths/pwcheck.c index 54ba80f92..7dd529fbc 100644 --- a/src/src/auths/pwcheck.c +++ b/src/src/auths/pwcheck.c @@ -3,6 +3,7 @@ * Tim Martin * $Id: checkpw.c,v 1.49 2002/03/07 19:14:04 ken3 Exp $ */ +/* Copyright (c) The Exim Maintainers 2021 - 2022 */ /* * Copyright (c) 2001 Carnegie Mellon University. All rights reserved. * @@ -86,8 +87,6 @@ int pwcheck_verify_password(const char *userid, const char *passwd, const char **reply) { -userid = userid; /* Keep picky compilers happy */ -passwd = passwd; *reply = "pwcheck support is not included in this Exim binary"; return PWCHECK_FAIL; } @@ -163,10 +162,6 @@ int saslauthd_verify_password(const uschar *userid, const uschar *realm, const uschar **reply) { -userid = userid; /* Keep picky compilers happy */ -passwd = passwd; -service = service; -realm = realm; *reply = US"saslauthd support is not included in this Exim binary"; return PWCHECK_FAIL; } @@ -296,7 +291,8 @@ static int read_string(int fd, uschar **retval) { if (count > MAX_REQ_LEN) { return -1; } else { - *retval = store_get(count + 1); + /* Assume the file is trusted, so no tainting */ + *retval = store_get(count + 1, GET_UNTAINTED); rc = (retry_read(fd, *retval, count) < (int) count); (*retval)[count] = '\0'; return count;