View | Details | Raw Unified | Return to bug 2245 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-6 / +3 lines)
Line  Link Here
0
-- a/audit.c
0
++ b/audit.c
Lines 71-83 audit_classify_auth(const char *method) Link Here
71
const char *
71
const char *
72
audit_username(void)
72
audit_username(void)
73
{
73
{
74
       static const char unknownuser[] = "(unknown user)";
74
       static const char unknownuser[] = "(unknown user)";
75
       static const char invaliduser[] = "(invalid user)";
76
75
77
       if (the_authctxt == NULL || the_authctxt->user == NULL)
76
       if (the_authctxt == NULL || the_authctxt->user == NULL || !the_authctxt->valid)
78
               return (unknownuser);
77
               return (unknownuser);
79
       if (!the_authctxt->valid)
80
               return (invaliduser);
81
       return (the_authctxt->user);
78
       return (the_authctxt->user);
82
}
79
}

Return to bug 2245