kdc: add missing enctype = p[i] assignments to _kdc_find_etype()
This is needed when a service provides support for newer entry.etypes without having a key for that encryption type yet. It is triggered with svc_use_strongest_session_key=TRUE. Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:

committed by
Jeffrey Altman

parent
05e589d247
commit
422419ddde
@@ -275,6 +275,7 @@ _kdc_find_etype(astgs_request_t r, uint32_t flags,
|
||||
* enctype in its KDC-REQ-BODY's etype list, which is what
|
||||
* `etypes' is here.
|
||||
*/
|
||||
enctype = p[i];
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
@@ -290,6 +291,7 @@ _kdc_find_etype(astgs_request_t r, uint32_t flags,
|
||||
*/
|
||||
for (m = 0; m < princ->etypes->len; m++) {
|
||||
if (p[i] == princ->etypes->val[m]) {
|
||||
enctype = p[i];
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user