kdc: fix _kdc_db_fetch when non-zero kvno specified
Prior change 83011252d7
which fixed
cross-realm trusts from AD to Heimdal removed the assignment of
'*kvno_ptr' to 'kvno' in the case where a non-zero key version
number is supplied by the caller. This breaks cross-realm trusts
from Heimdal to another realm.
This change restores the missing assignment.
Change-Id: Ic041d9d797ba4c8c0c567da55066ba5d3d1874bb
This commit is contained in:

committed by
Jeffrey Altman

parent
5ddff2c532
commit
abad8d5700
@@ -54,10 +54,12 @@ _kdc_db_fetch(krb5_context context,
|
|||||||
*h = NULL;
|
*h = NULL;
|
||||||
|
|
||||||
if (kvno_ptr != NULL) {
|
if (kvno_ptr != NULL) {
|
||||||
if (*kvno_ptr != 0)
|
if (*kvno_ptr != 0) {
|
||||||
|
kvno = *kvno_ptr;
|
||||||
flags |= HDB_F_KVNO_SPECIFIED;
|
flags |= HDB_F_KVNO_SPECIFIED;
|
||||||
else
|
} else {
|
||||||
flags |= HDB_F_ALL_KVNOS;
|
flags |= HDB_F_ALL_KVNOS;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ent = calloc(1, sizeof (*ent));
|
ent = calloc(1, sizeof (*ent));
|
||||||
|
Reference in New Issue
Block a user