Fix handling of null edata method in KDC preauth
authorGreg Hudson <ghudson@mit.edu>
Thu, 20 Oct 2011 15:16:03 +0000 (15:16 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 20 Oct 2011 15:16:03 +0000 (15:16 +0000)
Correctly include an empty padata value if a KDC preauth system has no
get_edata method.  This bug prevented the KDC from indicating FAST
support in preauth-required errors.

ticket: 6988
target_version: 1.10
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25385 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/kdc_preauth.c

index bf1017f529128bbd55ad61e57451de38f78feacb..272980db5a855519102dcfa400604a14ef57221c 100644 (file)
@@ -829,7 +829,7 @@ hint_list_next(struct hint_state *state)
         ap->get_edata(kdc_context, state->request, &callbacks, state->rock,
                       ap->moddata, ap->type, finish_get_edata, state);
     } else
-        finish_get_edata(state, ap->type, NULL);
+        finish_get_edata(state, 0, NULL);
     return;
 
 next: