* preauth2.c (pa_sam): Return an error if no prompter was provided
authorKen Raeburn <raeburn@mit.edu>
Sat, 3 Mar 2001 21:31:59 +0000 (21:31 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 3 Mar 2001 21:31:59 +0000 (21:31 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13049 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/preauth2.c

index d22f2079006b255284e5737b9463f18e8a77076f..73d92914a635304df873a0a6e7c5e88d506faa6d 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-03  Ken Raeburn  <raeburn@mit.edu>
+
+       * preauth2.c (pa_sam): Return an error if no prompter was
+       provided.
+
 2001-02-15  Ezra Peisach  <epeisach@mit.edu>
 
        * t_deltat.c (main): Test of overflow and underflow of krb5_int32. 
index a637473823e20af28760f925018168e9017eb7ac..47feeca8a76b5eca0c0c690b433ae143b604f11b 100644 (file)
@@ -256,6 +256,9 @@ krb5_error_code pa_sam(krb5_context context,
     krb5_data *                        scratch;
     krb5_pa_data *             pa;
 
+    if (prompter == NULL)
+       return EIO;
+
     tmpsam.length = in_padata->length;
     tmpsam.data = (char *) in_padata->contents;
     if ((ret = decode_krb5_sam_challenge(&tmpsam, &sam_challenge)))