From 5929e38b6cdbd4f9721293a19f079ceae1af76b0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 16 Feb 2013 22:07:41 +0100 Subject: tdb: Don't segfault if tdb_open_ex for check failed Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- lib/tdb/tools/tdbtorture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tdb/tools/tdbtorture.c b/lib/tdb/tools/tdbtorture.c index 04bbb7da76..760ad59313 100644 --- a/lib/tdb/tools/tdbtorture.c +++ b/lib/tdb/tools/tdbtorture.c @@ -439,6 +439,7 @@ done: O_RDWR, 0, &log_ctx, NULL); if (!db) { fatal("db open failed\n"); + exit(1); } if (tdb_check(db, NULL, NULL) == -1) { printf("db check failed\n"); -- cgit