Print out the proper verified message.
authoraland <aland>
Wed, 7 Nov 2001 15:55:14 +0000 (15:55 +0000)
committeraland <aland>
Wed, 7 Nov 2001 15:55:14 +0000 (15:55 +0000)
Bug noted by Simon Oakley <soakley@nextone.com>

src/modules/rlm_detail/rlm_detail.c

index 3eadd28..af8a5fe 100644 (file)
@@ -184,9 +184,9 @@ static int detail_accounting(void *instance, REQUEST *request)
                 *      Add non-protocol attibutes.
                 */
                fprintf(outfp, "\tTimestamp = %ld\n", request->timestamp);
-               if (request->packet->verified)
+               if (request->packet->verified == 2)
                        fputs("\tRequest-Authenticator = Verified\n", outfp);
-               else
+               else if (request->packet->verified == 1)
                        fputs("\tRequest-Authenticator = None\n", outfp);
                fputs("\n", outfp);
                fclose(outfp);