set the length for the NEW attribute, not the OLD one.
authoraland <aland>
Wed, 11 Oct 2000 15:40:52 +0000 (15:40 +0000)
committeraland <aland>
Wed, 11 Oct 2000 15:40:52 +0000 (15:40 +0000)
src/main/valuepair.c

index 1ce9309..120ed8e 100644 (file)
@@ -395,7 +395,7 @@ static int presufcmp(VALUE_PAIR *request, VALUE_PAIR *check,
                } else if ((vp = paircreate(PW_STRIPPED_USER_NAME,
                            PW_TYPE_STRING)) != NULL) {
                        strcpy(vp->strvalue, rest);
-                       request->length = strlen(rest);
+                       vp->length = strlen(rest);
                        pairadd(&request, vp);
                }
        }