Module-Failure-Message goes in request, not in reply
authorAlan T. DeKok <aland@freeradius.org>
Mon, 13 Sep 2010 14:55:34 +0000 (16:55 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 17 Sep 2010 09:35:44 +0000 (11:35 +0200)
src/modules/rlm_mschap/rlm_mschap.c

index 584f0a0..62d45ac 100644 (file)
@@ -721,7 +721,7 @@ static int do_mschap(rlm_mschap_t *inst,
                                "%s: External script says %s",
                                 inst->xlat_name, buffer);
                        vp->length = strlen(vp->vp_strvalue);
                                "%s: External script says %s",
                                 inst->xlat_name, buffer);
                        vp->length = strlen(vp->vp_strvalue);
-                       pairadd(&request->reply->vps, vp);
+                       pairadd(&request->request->vps, vp);
                        return -1;
                }
 
                        return -1;
                }