libcli/smb: rely on the caller zero-initializing "lease" in smb2_lease_pull()
commit2b1ef2d894a30648295186ad755affb0032d5581
authorRalph Boehme <slow@samba.org>
Mon, 21 Oct 2024 10:48:19 +0000 (21 12:48 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 Nov 2024 14:39:30 +0000 (5 14:39 +0000)
tree91c0c7bd03e8a1cd528d615df5aadcd3ac510f93
parent0192401c8a030782985b070a3436f1dcdd6f0a59
libcli/smb: rely on the caller zero-initializing "lease" in smb2_lease_pull()

Doing the zero initialization per struct member just feels like a way for bugs
to creep in, even when leasev1 is not going to change ever. The only caller has
already zero-initialized state->lease twice via 1) __tevent_req_create() and 2)
a struct initializer of "state".

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/smb/smb2_lease.c