]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Initialize ‘tm’ structure
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 20 Sep 2023 19:40:41 +0000 (07:40 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Sep 2023 02:43:28 +0000 (02:43 +0000)
‘tm’ must be initialized prior to calling strptime().

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/db-glue.c

index d421e6ead614744f8021805a9b82e5f92f9dddec..0295be5840f75c6727313f6b1db5337129662485 100644 (file)
@@ -135,7 +135,7 @@ static time_t ldb_msg_find_krb5time_ldap_time(struct ldb_message *msg, const cha
 {
     const char *tmp;
     const char *gentime;
-    struct tm tm;
+    struct tm tm = {};
 
     gentime = ldb_msg_find_attr_as_string(msg, attr, NULL);
     if (!gentime)