(krb5_oid_to_enctype): make sure oid exists before we compare with it

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13815 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-04-26 21:17:19 +00:00
parent 0e9441df50
commit 51a769716d

View File

@@ -3045,7 +3045,7 @@ krb5_oid_to_enctype(krb5_context context,
{
int i;
for(i = 0; i < num_etypes; i++) {
if(heim_oid_cmp(etypes[i]->oid, oid) == 0) {
if(etypes[i]->oid && heim_oid_cmp(etypes[i]->oid, oid) == 0) {
*etype = etypes[i]->type;
return 0;
}