diff --git a/src/worker-auth.c b/src/worker-auth.c
index 5bba2f19..43298361 100644
--- a/src/worker-auth.c
+++ b/src/worker-auth.c
@@ -1033,11 +1033,10 @@ int post_common_handler(worker_st * ws, unsigned http_ver, const char *imsg)
return 0;
}
-/* Returns the contents of the provided fields in a newly allocated
+/* Returns the contents of the password field in a newly allocated
* string, or a negative value on error.
*
* @body: is the string to search the xml field at, should be null-terminated.
- * @xml_field: the XML field to check for (e.g., MYFIELD)
* @value: the value that was found
*/
static
@@ -1045,7 +1044,6 @@ int match_password_in_reply(worker_st * ws, char *body, unsigned body_length,
char **value)
{
char *p;
- char temp1[64];
unsigned len, xml = 0;
if (body == NULL || body_length == 0)
@@ -1054,11 +1052,9 @@ int match_password_in_reply(worker_st * ws, char *body, unsigned body_length,
if (memmem(body, body_length, "test */
+ /* body should contain test */
*value =
- strcasestr(body, temp1);
+ strcasestr(body, "