From 1d04f82647095502e00afca300c5db8c8e0a788d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 3 Mar 2001 21:31:59 +0000 Subject: [PATCH] * preauth2.c (pa_sam): Return an error if no prompter was provided git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13049 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/preauth2.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index d22f20790..73d92914a 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2001-03-03 Ken Raeburn + + * preauth2.c (pa_sam): Return an error if no prompter was + provided. + 2001-02-15 Ezra Peisach * t_deltat.c (main): Test of overflow and underflow of krb5_int32. diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index a63747382..47feeca8a 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -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))) -- 2.26.2