]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool domain: Initialise variables before attempting to use them
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 13 Feb 2023 01:52:18 +0000 (14:52 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 12 Apr 2023 13:52:31 +0000 (13:52 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/samba/netcmd/domain/trust.py

index de64dfadd312a2f8f53ef600fd9cb4d3f0f3bb06..9957093438415bf22854c47f5c6286ea3fe90cf3 100644 (file)
@@ -1036,6 +1036,9 @@ class cmd_domain_trust_create(DomainTrustCommand):
         incoming_blob = generate_AuthInOutBlob(incoming_secret, update_time)
         outgoing_blob = generate_AuthInOutBlob(outgoing_secret, update_time)
 
+        local_tdo_handle = None
+        remote_tdo_handle = None
+
         try:
             if remote_trust_info:
                 self.outf.write("Creating remote TDO.\n")