diff options
author | Volker Lendecke <vl@samba.org> | 2013-02-16 22:07:41 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-02-19 15:46:45 +0100 |
commit | 5929e38b6cdbd4f9721293a19f079ceae1af76b0 (patch) | |
tree | 3e574de71fa4be54c68aad2ffc3e11751de1578c /lib/tdb/tools | |
parent | 3534e4e8d5bebfaaaef5886dcea219a7e4047fc7 (diff) | |
download | samba-5929e38b6cdbd4f9721293a19f079ceae1af76b0.tar.gz samba-5929e38b6cdbd4f9721293a19f079ceae1af76b0.tar.bz2 samba-5929e38b6cdbd4f9721293a19f079ceae1af76b0.zip |
tdb: Don't segfault if tdb_open_ex for check failed
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/tdb/tools')
-rw-r--r-- | lib/tdb/tools/tdbtorture.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |