crash creating db2 database in non-existent directory
authorKen Raeburn <raeburn@mit.edu>
Mon, 8 Jan 2007 22:41:01 +0000 (22:41 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 8 Jan 2007 22:41:01 +0000 (22:41 +0000)
commit58c8b838040557cba501f6b6e7bd585f18c0f3cc
tree5951e632cb3004062f6b6ed2abf65f46a9477c5b
parentb0d429bc871cd63508341010fed24689a9caa460
crash creating db2 database in non-existent directory

* kdb_db2.c (krb5_db2_db_create): If the creation of the first database file
fails, return the error, instead of attempting to create the second (and using
a null pointer as an input string in formatting a filename).

Reported by Jeff Blaine.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19038 dc483132-0cff-0310-8789-dd5450dbe970
src/plugins/kdb/db2/kdb_db2.c