r10563: a null 'join' is a no-op.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 28 Sep 2005 02:37:03 +0000 (02:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:39:04 +0000 (13:39 -0500)
Andrew Bartlett
(This used to be commit cd70e8baf5bccfd11ade342f6692ea7f7bf2eef4)

source4/torture/rpc/testjoin.c

index 2c2eca74e75de6cde5177b111def3d8c2ae756ee..86cff44084da9a759296a83063c43e1226f7dd72 100644 (file)
@@ -416,6 +416,9 @@ void torture_leave_domain(struct test_join *join)
        struct samr_DeleteUser d;
        NTSTATUS status;
 
+       if (!join) {
+               return;
+       }
        d.in.user_handle = &join->user_handle;
        d.out.user_handle = &join->user_handle;