mirror of
https://github.com/curl/curl.git
synced 2026-07-09 00:47:15 +03:00
adjusted to the changed getpass_r()
This commit is contained in:
parent
a5b2eb7962
commit
7b5c551835
1 changed files with 6 additions and 1 deletions
|
|
@ -266,7 +266,12 @@ CURLcode curl_close(CURL *curl)
|
|||
|
||||
int my_getpass(void *clientp, char *prompt, char* buffer, int buflen )
|
||||
{
|
||||
return getpass_r(prompt, buffer, buflen);
|
||||
char *retbuf;
|
||||
retbuf = getpass_r(prompt, buffer, buflen);
|
||||
if(NULL == retbuf)
|
||||
return 1;
|
||||
else
|
||||
return 0; /* success */
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue