summaryrefslogtreecommitdiff
path: root/source4/kdc/sdb_to_hdb.c
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2023-04-28 11:58:38 +1200
committerAndrew Bartlett <abartlet@samba.org>2023-05-18 01:03:37 +0000
commitf1212ffe4e4e2c09b9e10e9b7fe5a152e6f7adf6 (patch)
tree6b1d649d98f68c89b15814bad1a0c96e424b48d5 /source4/kdc/sdb_to_hdb.c
parent9eaff7e852bc6cd6d6146d5cf3d6007c3119d5d6 (diff)
downloadsamba-f1212ffe4e4e2c09b9e10e9b7fe5a152e6f7adf6.tar.gz
s4:kdc: Make maximum lifetime and renew time signed
This is now consistent with Heimdal, and with our usage of time_t elsewhere. NOTE: This commit finally works again! Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/kdc/sdb_to_hdb.c')
-rw-r--r--source4/kdc/sdb_to_hdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/kdc/sdb_to_hdb.c b/source4/kdc/sdb_to_hdb.c
index c72eb91ea21..994a52d7d44 100644
--- a/source4/kdc/sdb_to_hdb.c
+++ b/source4/kdc/sdb_to_hdb.c
@@ -250,7 +250,7 @@ int sdb_entry_to_hdb_entry(krb5_context context,
}
if (s->max_life != NULL) {
- h->max_life = malloc(sizeof(unsigned int));
+ h->max_life = malloc(sizeof(*h->max_life));
if (h->max_life == NULL) {
rc = ENOMEM;
goto error;
@@ -261,7 +261,7 @@ int sdb_entry_to_hdb_entry(krb5_context context,
}
if (s->max_renew != NULL) {
- h->max_renew = malloc(sizeof(unsigned int));
+ h->max_renew = malloc(sizeof(*h->max_renew));
if (h->max_renew == NULL) {
rc = ENOMEM;
goto error;