summaryrefslogtreecommitdiffstats
path: root/libvncserver/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver/auth.c')
-rwxr-xr-xlibvncserver/auth.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libvncserver/auth.c b/libvncserver/auth.c
index 642cca6..b8fbad6 100755
--- a/libvncserver/auth.c
+++ b/libvncserver/auth.c
@@ -29,6 +29,10 @@
#include <rfb/rfb.h>
+/* RFB 3.8 clients are well informed */
+void rfbClientSendString(rfbClientPtr cl, char *reason);
+
+
/*
* Handle security types
*/
@@ -207,7 +211,7 @@ rfbSendSecurityTypeList(rfbClientPtr cl, int primaryType)
/* The execution should never reach here */
char* reason = "No authentication mode is registered!";
- rfbClientConnFailed(cl, reason);
+ rfbClientSendString(cl, reason);
return;
}
@@ -352,7 +356,7 @@ rfbAuthProcessClientMessage(rfbClientPtr cl)
}
/* support RFB 3.8 clients, they expect a reason *why* it was disconnected */
if (cl->protocolMinorVersion > 7) {
- rfbClientConnFailed(cl, "password check failed!");
+ rfbClientSendString(cl, "password check failed!");
}
else
rfbCloseClient(cl);