mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s3:passdb: Initialize ‘tm’ structure
‘tm’ must be initialized prior to calling strptime(). Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
955fd83253
commit
67f3fead5f
@ -441,7 +441,7 @@ static int ldapsam_delete_entry(struct ldapsam_privates *priv,
|
||||
static time_t ldapsam_get_entry_timestamp( struct ldapsam_privates *ldap_state, LDAPMessage * entry)
|
||||
{
|
||||
char *temp;
|
||||
struct tm tm;
|
||||
struct tm tm = {};
|
||||
|
||||
temp = smbldap_talloc_single_attribute(
|
||||
smbldap_get_ldap(ldap_state->smbldap_state), entry,
|
||||
|
Loading…
Reference in New Issue
Block a user