aboutsummaryrefslogtreecommitdiffstats
path: root/lib/vauth/cleartext.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vauth/cleartext.c')
-rw-r--r--lib/vauth/cleartext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vauth/cleartext.c b/lib/vauth/cleartext.c
index 5d61ce6d..be6d6111 100644
--- a/lib/vauth/cleartext.c
+++ b/lib/vauth/cleartext.c
@@ -50,7 +50,7 @@
*
* data [in] - The session handle.
* userp [in] - The user name.
- * passdwp [in] - The user's password.
+ * passwdp [in] - The user's password.
* outptr [in/out] - The address where a pointer to newly allocated memory
* holding the result will be stored upon completion.
* outlen [out] - The length of the output message.
@@ -74,7 +74,7 @@ CURLcode Curl_auth_create_plain_message(struct Curl_easy *data,
plen = strlen(passwdp);
/* Compute binary message length. Check for overflows. */
- if((ulen > SIZE_T_MAX/2) || (plen > (SIZE_T_MAX/2 - 2)))
+ if((ulen > SIZE_T_MAX/4) || (plen > (SIZE_T_MAX/2 - 2)))
return CURLE_OUT_OF_MEMORY;
plainlen = 2 * ulen + plen + 2;