diff options
author | James Peach <jpeach@samba.org> | 2006-06-27 06:17:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:34 -0500 |
commit | 0168e973d8bb70214399474f1a7c121dab803200 (patch) | |
tree | 358e8eed18280a4ec0c903821988477d6fdf5bf5 /source4 | |
parent | ff2041c955e9152bd286ab6ea534b8445caab574 (diff) | |
download | samba-0168e973d8bb70214399474f1a7c121dab803200.tar.gz samba-0168e973d8bb70214399474f1a7c121dab803200.tar.bz2 samba-0168e973d8bb70214399474f1a7c121dab803200.zip |
r16557: Silently succeed when torture_register_suite is passed NULL.
(This used to be commit dbcb190aa0a687e62cc109ab6314aa705a0c7aca)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/torture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 52349904a5..bd27cf1081 100644 --- a/source4/torture/torture.c +++ b/source4/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; |