diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-10-17 13:19:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:19 -0500 |
commit | d60c86364c396adee36aa5d353aa782bbf26e01e (patch) | |
tree | f6c2d5e3b87bd7c32c2e520eaac3ecdae24c244d /source4 | |
parent | 8c015370d2056a2803efe522b2b6dcabfa0aafd8 (diff) | |
download | samba-d60c86364c396adee36aa5d353aa782bbf26e01e.tar.gz samba-d60c86364c396adee36aa5d353aa782bbf26e01e.tar.bz2 samba-d60c86364c396adee36aa5d353aa782bbf26e01e.zip |
r19372: Fix segfault for ui's that don't support comments.
(This used to be commit 0eef6dabc6b6a4e883654c78a0b88cebb6b3d7cd)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/ui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/ui.c b/source4/torture/ui.c index d8bff6cca3..beb0e8fa9c 100644 --- a/source4/torture/ui.c +++ b/source4/torture/ui.c @@ -49,7 +49,8 @@ void _torture_fail_ext(struct torture_context *context, va_start(ap, fmt); context->last_reason = talloc_vasprintf(context, fmt, ap); /* make sure the reason for the failure is displayed */ - context->ui_ops->comment(context, context->last_reason); + if (context->ui_ops->comment) + context->ui_ops->comment(context, context->last_reason); va_end(ap); context->last_result = TORTURE_FAIL; } |