(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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user