From 93512036971210d4cd7d2a41d39aec02a2153926 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 1 Apr 2011 05:56:46 +0000 Subject: [PATCH] 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 --- src/plugins/authdata/greet_client/greet.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.26.2