summaryrefslogtreecommitdiffstats
path: root/x11vnc/unixpw.c
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2009-12-05 14:31:31 -0500
committerrunge <runge@karlrunge.com>2009-12-05 14:31:31 -0500
commit6153bd69835da0e7217ae844bdba4e2ba676f981 (patch)
tree270d264e229678c29fde567f2334eace65bda185 /x11vnc/unixpw.c
parent00a9a0ea4d0f642b34b4423ea867099b52edf078 (diff)
downloadlibtdevnc-6153bd69835da0e7217ae844bdba4e2ba676f981.tar.gz
libtdevnc-6153bd69835da0e7217ae844bdba4e2ba676f981.zip
Update java and scripts in classes/ssl. x11vnc: declare crypt() on all platforms. more wishes.
Diffstat (limited to 'x11vnc/unixpw.c')
-rw-r--r--x11vnc/unixpw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c
index 92eec53..7f8f940 100644
--- a/x11vnc/unixpw.c
+++ b/x11vnc/unixpw.c
@@ -37,7 +37,9 @@ so, delete this exception statement from your version.
extern int grantpt(int);
extern int unlockpt(int);
extern char *ptsname(int);
-/* XXX remove need for this */
+#endif
+
+#ifndef DO_NOT_DECLARE_CRYPT
extern char *crypt(const char*, const char *);
#endif
@@ -800,7 +802,7 @@ int crypt_verify(char *user, char *pass) {
fprintf(stderr, "user='%s' pass='%s' realpw='%s' cr='%s'\n",
user, pass, realpw, cr ? cr : "(null)");
}
- if (cr == NULL) {
+ if (cr == NULL || cr[0] == '\0') {
return 0;
}
if (!strcmp(cr, realpw)) {