summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvncserver/rfbserver.c1
-rw-r--r--rfb/rfb.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c
index 133007d..c86d7ca 100644
--- a/libvncserver/rfbserver.c
+++ b/libvncserver/rfbserver.c
@@ -629,6 +629,7 @@ rfbProcessClientProtocolVersion(rfbClientPtr cl)
* maintaining RFB version compatibility across multiple servers is a pain
* Should use something like ServerIdentity encoding
*/
+ cl->protocolMajorVersion = major_;
cl->protocolMinorVersion = minor_;
rfbLog("Protocol version sent %d.%d, using %d.%d\n",
diff --git a/rfb/rfb.h b/rfb/rfb.h
index 1aef85a..b664efe 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -421,6 +421,7 @@ typedef struct _rfbClientRec {
char *host;
/* RFB protocol minor version number */
+ int protocolMajorVersion;
int protocolMinorVersion;
#ifdef LIBVNCSERVER_HAVE_LIBPTHREAD