mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Close #74: Exiting XCA 2.1.1 corrupts database
The case-insensitive object search adds all short and long names to a lookup table mapping the lowercase name to the corrersponding nid. The array of nids contains 7 undefined nids. Resolving them raises the error. This fix deletes those errors after the map has been built.
This commit is contained in:
parent
eba8be37b8
commit
7b7e2644fa
@ -135,8 +135,10 @@ void initOIDs()
|
||||
QString dir = getPrefix();
|
||||
|
||||
first_additional_oid = OBJ_new_nid(0);
|
||||
openssl_error();
|
||||
for (int i=0; i<first_additional_oid;i++)
|
||||
addToLowerMap(i);
|
||||
ign_openssl_error();
|
||||
readOIDs(dir + oids);
|
||||
#if !defined(Q_OS_WIN32)
|
||||
#if !defined(Q_OS_MAC)
|
||||
@ -144,6 +146,7 @@ void initOIDs()
|
||||
#endif
|
||||
#endif
|
||||
readOIDs(getUserSettingsDir() + oids);
|
||||
openssl_error();
|
||||
}
|
||||
|
||||
/* reads a list of OIDs/SNs from a file and turns them into a QValueList
|
||||
@ -176,5 +179,6 @@ NIDlist readNIDlist(QString fname)
|
||||
else
|
||||
nl += nid;
|
||||
}
|
||||
openssl_error();
|
||||
return nl;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user