diff options
author | Luke Howard <lukeh@padl.com> | 2011-04-01 05:51:49 +0000 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2011-04-01 05:51:49 +0000 |
commit | f0701b299549c9a64ded1b73c8fb941a1f11b4ee (patch) | |
tree | c837870d16cec3468c3674fda0a6dd38d799995d | |
parent | bb6404f38d81a5174f1ecd047d051d86eb79d448 (diff) | |
download | krb5-f0701b299549c9a64ded1b73c8fb941a1f11b4ee.zip krb5-f0701b299549c9a64ded1b73c8fb941a1f11b4ee.tar.gz krb5-f0701b299549c9a64ded1b73c8fb941a1f11b4ee.tar.bz2 |
only reset greeting if provided attribute is urn:greet:greeting
git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/saml2@24772 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/plugins/authdata/greet_client/greet.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/authdata/greet_client/greet.c b/src/plugins/authdata/greet_client/greet.c index c3bbfb1..499d0ed 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; |