]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
adjusted to the changed getpass_r()
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Nov 2000 09:19:09 +0000 (09:19 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Nov 2000 09:19:09 +0000 (09:19 +0000)
lib/url.c

index f3212901a9613d36fa580d045f0c3fc9af6eb7d7..9e32eaff431692c3adaa35f0b758742da826b8c3 100644 (file)
--- 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 */
 }