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>
time_t *valid_start;
time_t *valid_end;
time_t *pw_end;
- unsigned int *max_life;
- unsigned int *max_renew;
+ int *max_life;
+ int *max_renew;
struct SDBFlags flags;
};
}
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;
}
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;