]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Quiet compiler
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Jul 2020 17:44:03 +0000 (13:44 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Jul 2020 17:44:03 +0000 (13:44 -0400)
src/modules/rlm_digest/rlm_digest.c

index a6d4d916ec693f255b389ead934a0835abaedf26..f166b78f2fd7ae3128955a7f72e72bf3aea4877e 100644 (file)
@@ -428,7 +428,8 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(UNUSED module_ctx_t const *
                return RLM_MODULE_INVALID;
        }
 
-       if (fr_hex2bin(&FR_DBUFF_TMP(&hash[0], sizeof(hash)), &FR_SBUFF_IN(vp->vp_strvalue, vp->vp_length)) != (vp->vp_length >> 1)) {
+       if (fr_hex2bin(&FR_DBUFF_TMP(&hash[0], sizeof(hash)),
+                      &FR_SBUFF_IN(vp->vp_strvalue, vp->vp_length)) != (ssize_t)(vp->vp_length >> 1)) {
                RDEBUG2("Invalid text in Digest-Response");
                return RLM_MODULE_INVALID;
        }