(find_type): make sure of always setting `ret_etype' correctly.
clean-up structure some git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8990 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -92,15 +92,13 @@ find_etype(hdb_entry *princ, unsigned *etypes, unsigned len,
|
||||
ret = KRB5KDC_ERR_NULL_KEY;
|
||||
continue;
|
||||
}
|
||||
*ret_key = key;
|
||||
*ret_key = key;
|
||||
*ret_etype = etypes[i];
|
||||
ret = 0;
|
||||
if (key->salt == NULL)
|
||||
goto out;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
out:
|
||||
if (ret_etype)
|
||||
*ret_etype = etypes[i];
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user