kdc: fix _kdc_db_fetch when non-zero kvno specified
commitabad8d5700684dd95dc69b51f73cd418871e2259
authorPatrik Lundin <patrik.lundin@su.se>
Fri, 20 May 2016 13:02:33 +0000 (20 09:02 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 20 May 2016 13:02:33 +0000 (20 09:02 -0400)
treeb37072f64151f5737b81f912a6ddd8b3cca95ffe
parent5ddff2c5329c0adc2896881e83a928fce3b48fc8
kdc: fix _kdc_db_fetch when non-zero kvno specified

Prior change 83011252d7be71d60aa23df8648c516a6148203e 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
kdc/misc.c