git.samba.org
/
jelmer
/
samba4-debian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3d2512
)
r16557: Silently succeed when torture_register_suite is passed NULL.
author
James Peach
<jpeach@samba.org>
Tue, 27 Jun 2006 06:17:11 +0000
(06:17 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:09:34 +0000
(14:09 -0500)
source/torture/torture.c
patch
|
blob
|
history
diff --git
a/source/torture/torture.c
b/source/torture/torture.c
index 52349904a57a4d88736beccaf00bcb0f4f77af26..bd27cf1081abe2e4df8c64296e5a8052d9136fab 100644
(file)
--- a/
source/torture/torture.c
+++ b/
source/torture/torture.c
@@
-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;