aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index f3212901a..9e32eaff4 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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 */
}