From: Luke Howard Date: Fri, 1 Apr 2011 05:56:46 +0000 (+0000) Subject: only reset greeting if provided attribute is urn:greet:greeting X-Git-Tag: krb5-1.10-alpha1~509 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=93512036971210d4cd7d2a41d39aec02a2153926;p=krb5.git only reset greeting if provided attribute is urn:greet:greeting git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24776 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/plugins/authdata/greet_client/greet.c b/src/plugins/authdata/greet_client/greet.c index c3bbfb14a..499d0edb3 100644 --- a/src/plugins/authdata/greet_client/greet.c +++ b/src/plugins/authdata/greet_client/greet.c @@ -223,6 +223,9 @@ greet_set_attribute(krb5_context kcontext, krb5_data data; krb5_error_code code; + if (!data_eq(*attribute, greet_attr)) + return ENOENT; + if (greet->greeting.data != NULL) return EEXIST;