summaryrefslogtreecommitdiff
path: root/src/plugins/audit/kdc_j_encode.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2018-04-03 19:36:00 +0000
committerCy Schubert <cy@FreeBSD.org>2018-04-03 19:36:00 +0000
commitb0e4d68d5124581ae353493d69bea352de4cff8a (patch)
tree43300ec43e83eccd367fd76fdfdefba2dcd7d8f4 /src/plugins/audit/kdc_j_encode.c
parent33a9b234e7087f573ef08cd7318c6497ba08b439 (diff)
Notes
Diffstat (limited to 'src/plugins/audit/kdc_j_encode.c')
-rwxr-xr-xsrc/plugins/audit/kdc_j_encode.c29
1 files changed, 13 insertions, 16 deletions
diff --git a/src/plugins/audit/kdc_j_encode.c b/src/plugins/audit/kdc_j_encode.c
index e24f4d851066..265e95bc4eab 100755
--- a/src/plugins/audit/kdc_j_encode.c
+++ b/src/plugins/audit/kdc_j_encode.c
@@ -861,22 +861,19 @@ tkt_to_value(krb5_ticket *tkt, k5_json_object obj,
ret = int32_to_value(part2->session->enctype, tmp, AU_SESS_ETYPE);
if (ret)
goto error;
- if (&part2->times) {
- ret = int32_to_value(part2->times.starttime, tmp, AU_START);
- if (ret)
- goto error;
- ret = int32_to_value(part2->times.endtime, tmp, AU_END);
- if (ret)
- goto error;
- ret = int32_to_value(part2->times.renew_till, tmp, AU_RENEW_TILL);
- if (ret)
- goto error;
- ret = int32_to_value(part2->times.authtime, tmp, AU_AUTHTIME);
- if (ret)
- goto error;
- }
- if (&part2->transited && &part2->transited.tr_contents &&
- part2->transited.tr_contents.length > 0) {
+ ret = int32_to_value(part2->times.starttime, tmp, AU_START);
+ if (ret)
+ goto error;
+ ret = int32_to_value(part2->times.endtime, tmp, AU_END);
+ if (ret)
+ goto error;
+ ret = int32_to_value(part2->times.renew_till, tmp, AU_RENEW_TILL);
+ if (ret)
+ goto error;
+ ret = int32_to_value(part2->times.authtime, tmp, AU_AUTHTIME);
+ if (ret)
+ goto error;
+ if (part2->transited.tr_contents.length > 0) {
ret = data_to_value(&part2->transited.tr_contents,
tmp, AU_TR_CONTENTS);
if (ret)