Fix SEGV if mdb-array is given a bad filename

See bug repport at:
http://www.forallsecure.com/bug-reports/d256a6f86b05b4ca0a1d7097b64e7c6bcd98de6d/
This commit is contained in:
Nirgal Vourgère
2013-06-26 21:08:24 +02:00
parent ecc72f8faf
commit 37cd3ecd2c

View File

@@ -46,6 +46,8 @@ int started;
}
mdb = mdb_open (argv [1], MDB_NOFLAGS);
if (!mdb)
exit(1);
table = mdb_read_table_by_name (mdb, argv[2], MDB_TABLE);
if (table)