s4:torture: Initialize tm struct
authorSamuel Cabrero <scabrero@suse.de>
Wed, 13 Mar 2019 09:46:36 +0000 (10:46 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 22 Mar 2019 14:03:19 +0000 (14:03 +0000)
commit88804bc24c58d7da866c582ce639aa77af766b5a
tree6fb5bdddd325cde685e33646680b5e4162124ab8
parent4a526ec470df4b983745939fe86927a9ea66778c
s4:torture: Initialize tm struct

The samba3.blackbox.shadow_copy_torture tests call to strptime passing
an uninitalized tm structure as an argument, but the strptime function
does not write the tm.tm_isdst field.

These tm structures are passed later as the mktime argument, which
produces different values depending on whether the arbitrary value
of the tm.tm_isdst field is lower or equal to zero or greather than
zero.

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/smb2/create.c