Match the prompt type PROMPT exact.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18452 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-14 09:41:05 +00:00
parent 7bb7aad766
commit dcc23a24d0

View File

@@ -234,7 +234,7 @@ hx509_lock_command_string(hx509_lock lock, const char *string)
{
if (strncasecmp(string, "PASS:", 5) == 0) {
hx509_lock_add_password(lock, string + 5);
} else if (strncasecmp(string, "PROMPT", 6) == 0) {
} else if (strcasecmp(string, "PROMPT") == 0) {
hx509_lock_set_prompter(lock, default_prompter, NULL);
} else
return HX509_UNKNOWN_LOCK_COMMAND;