Make code consistent with examples.
authorAlan T. DeKok <aland@freeradius.org>
Tue, 11 Aug 2009 12:35:29 +0000 (14:35 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 11 Aug 2009 12:36:39 +0000 (14:36 +0200)
Fixes bug #10

src/modules/rlm_wimax/rlm_wimax.c

index 73fe740..b2d474a 100644 (file)
@@ -456,7 +456,7 @@ static int wimax_postauth(void *instance, REQUEST *request)
         *      FA-RK= H(MIP-RK, "FA-RK")
         */
        fa_rk = pairfind(request->reply->vps, WIMAX2ATTR(14));
-       if (fa_rk && (fa_rk->length == 0)) {
+       if (fa_rk && (fa_rk->length <= 1)) {
                HMAC_CTX_init(&hmac);
                HMAC_Init_ex(&hmac, mip_rk, rk_len, EVP_sha1(), NULL);