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:49:55 +0000 (13:49 -0400)
src/modules/rlm_soh/rlm_soh.c

index 00b0f60..9a76d78 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;