]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use shift for VSAs instead of OR
authorAlan T. DeKok <aland@freeradius.org>
Fri, 29 Oct 2010 17:48:53 +0000 (13:48 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 29 Oct 2010 17:48:53 +0000 (13:48 -0400)
src/modules/rlm_soh/rlm_soh.c

index aeb0c211852ce56db6e7b2a6e257a0ac7d64e2db..b98a79cb4f41d19390f71df6650abfe329cb1465 100644 (file)
@@ -201,7 +201,7 @@ static int soh_authorize(UNUSED void * instance, REQUEST *request)
        int rv;
 
        /* try to find the MS-SoH payload */
-       vp = pairfind(request->packet->vps, (311 | 16) | 55);
+       vp = pairfind(request->packet->vps, (311 << 16) | 55);
        if (!vp) {
                RDEBUG("SoH radius VP not found");
                return RLM_MODULE_NOOP;