r16557: Silently succeed when torture_register_suite is passed NULL.
authorJames Peach <jpeach@samba.org>
Tue, 27 Jun 2006 06:17:11 +0000 (06:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:09:34 +0000 (14:09 -0500)
(This used to be commit dbcb190aa0a687e62cc109ab6314aa705a0c7aca)

source4/torture/torture.c

index 52349904a57a4d88736beccaf00bcb0f4f77af26..bd27cf1081abe2e4df8c64296e5a8052d9136fab 100644 (file)
@@ -41,6 +41,10 @@ NTSTATUS torture_register_suite(struct torture_suite *suite)
 {
        struct torture_suite_list *p, *n;
 
+       if (!suite) {
+               return NT_STATUS_OK;
+       }
+
        n = talloc(talloc_autofree_context(), struct torture_suite_list);
        n->suite = suite;