only reset greeting if provided attribute is urn:greet:greeting
authorLuke Howard <lukeh@padl.com>
Fri, 1 Apr 2011 05:56:46 +0000 (05:56 +0000)
committerLuke Howard <lukeh@padl.com>
Fri, 1 Apr 2011 05:56:46 +0000 (05:56 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24776 dc483132-0cff-0310-8789-dd5450dbe970

src/plugins/authdata/greet_client/greet.c

index c3bbfb14ad393a818ec8fbe24328d29cd0458fb0..499d0edb39c53463517e671ae5c270cf8df271d7 100644 (file)
@@ -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;