* kdc_preauth.c (return_sam_data): Just return 0 if no input preauth data is available
authorKen Raeburn <raeburn@mit.edu>
Mon, 7 Feb 2000 11:23:16 +0000 (11:23 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 7 Feb 2000 11:23:16 +0000 (11:23 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12015 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/kdc_preauth.c

index ed501615b9dcada3b8690a0e2b3af3da599d8bec..7f86a66968ce9a7ba81b5fab6a0a06f334e15fc0 100644 (file)
@@ -3,7 +3,8 @@
        * kdc_preauth.c (get_preauth_hint_list): Log a message if preauth
        is required but no preauth types are available.
        (return_sam_data): Fix typo in figuring length of data to XOR when
-       merging keys.
+       merging keys.  Just return 0 if no input preauth data is
+       available.
 
 2000-02-06  Ken Raeburn  <raeburn@mit.edu>
 
index 27b4f846b61d3bf0ee7858bc7cb4ba5cb8be3557..db358d283b70b6214bb9ac31cfe108c02f0e2738 100644 (file)
@@ -696,6 +696,9 @@ return_sam_data(context, in_padata, client, request, reply, client_key,
     krb5_sam_response          *sr = 0;
     krb5_predicted_sam_response        *psr = 0;
 
+    if (in_padata == 0)
+       return 0;
+
     /*
      * We start by doing the same thing verify_sam_response() does:
      * extract the psr from the padata (which is an sr). Nothing