Declare variables before code
authoraland <aland>
Fri, 4 Jan 2008 13:22:53 +0000 (13:22 +0000)
committeraland <aland>
Fri, 4 Jan 2008 13:22:53 +0000 (13:22 +0000)
src/modules/rlm_preprocess/rlm_preprocess.c

index e9fee90..7401b60 100644 (file)
@@ -177,8 +177,9 @@ static void alvarion_vsa_hack(VALUE_PAIR *vp)
        int             number = 1;
 
        for ( ; vp != NULL; vp = vp->next) {
-               vendorcode = VENDOR(vp->attribute);
                DICT_ATTR *da;
+
+               vendorcode = VENDOR(vp->attribute);
                if (vendorcode != 12394) continue;
                if (vp->type != PW_TYPE_STRING) continue;