[Pkg-openldap-devel] [openldap] 203/339: ITS#7851 contrib pw-sha2 fix int/size_t comparison

Ryan Tandy rtandy-guest at moszumanska.debian.org
Sun Oct 19 22:47:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

rtandy-guest pushed a commit to branch master
in repository openldap.

commit 10f742729aca323d14979f3ae6cd71a841a23b96
Author: ryan at nardis.ca <ryan at nardis.ca>
Date:   Fri Jun 27 02:18:13 2014 +0000

    ITS#7851 contrib pw-sha2 fix int/size_t comparison
---
 contrib/slapd-modules/passwd/sha2/slapd-sha2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/slapd-modules/passwd/sha2/slapd-sha2.c b/contrib/slapd-modules/passwd/sha2/slapd-sha2.c
index 1ec7989..2e4fcb0 100644
--- a/contrib/slapd-modules/passwd/sha2/slapd-sha2.c
+++ b/contrib/slapd-modules/passwd/sha2/slapd-sha2.c
@@ -244,7 +244,7 @@ static int chk_ssha256(
 
 	rc = lutil_b64_pton(passwd->bv_val, orig_pass, decode_len);
 
-	if( rc <= sizeof(SHAdigest) ) {
+	if( rc <= (int)(sizeof(SHAdigest)) ) {
 		ber_memfree(orig_pass);
 		return LUTIL_PASSWD_ERR;
 	}
@@ -332,7 +332,7 @@ static int chk_ssha384(
 
 	rc = lutil_b64_pton(passwd->bv_val, orig_pass, decode_len);
 
-	if( rc <= sizeof(SHAdigest) ) {
+	if( rc <= (int)(sizeof(SHAdigest)) ) {
 		ber_memfree(orig_pass);
 		return LUTIL_PASSWD_ERR;
 	}
@@ -420,7 +420,7 @@ static int chk_ssha512(
 
 	rc = lutil_b64_pton(passwd->bv_val, orig_pass, decode_len);
 
-	if( rc <= sizeof(SHAdigest) ) {
+	if( rc <= (int)(sizeof(SHAdigest)) ) {
 		ber_memfree(orig_pass);
 		return LUTIL_PASSWD_ERR;
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git



More information about the Pkg-openldap-devel mailing list