add example state, too.
authoraland <aland>
Tue, 30 Jan 2001 20:25:43 +0000 (20:25 +0000)
committeraland <aland>
Tue, 30 Jan 2001 20:25:43 +0000 (20:25 +0000)
src/modules/rlm_example/rlm_example.c

index 3c4c7f4..c08b628 100644 (file)
@@ -160,6 +160,8 @@ static int example_authorize(void *instance, REQUEST *request)
         */
                reply = pairmake("Reply-Message", "This is a challenge", T_OP_EQ);
        pairadd(&request->reply->vps, reply);
+       state = pairmake("State", "0", T_OP_EQ);
+       pairadd(&request->reply->vps, state);
 
        /*
         *  Mark the packet as an Access-Challenge packet.