diff options
author | runge <runge@karlrunge.com> | 2011-01-01 13:54:47 -0500 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2011-01-01 13:54:47 -0500 |
commit | 658bef5fdeeb39557d570536f1709e5c520a1d72 (patch) | |
tree | e758319662afc3e4b5c146f42a5e636455fa6623 /libvncserver/rfbserver.c | |
parent | 596331a5c3124f080cdcbb400c188c095048ef35 (diff) | |
download | libtdevnc-658bef5fdeeb39557d570536f1709e5c520a1d72.tar.gz libtdevnc-658bef5fdeeb39557d570536f1709e5c520a1d72.zip |
Remove never used protocol version name string.
Diffstat (limited to 'libvncserver/rfbserver.c')
-rw-r--r-- | libvncserver/rfbserver.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c index d59b979..8d6ae0c 100644 --- a/libvncserver/rfbserver.c +++ b/libvncserver/rfbserver.c @@ -599,14 +599,9 @@ rfbProcessClientProtocolVersion(rfbClientPtr cl) pv[sz_rfbProtocolVersionMsg] = 0; if (sscanf(pv,rfbProtocolVersionFormat,&major_,&minor_) != 2) { - char name[1024]; - if(sscanf(pv,"RFB %03d.%03d %1023s\n",&major_,&minor_,name) != 3) { - rfbErr("rfbProcessClientProtocolVersion: not a valid RFB client: %s\n", pv); - rfbCloseClient(cl); - return; - } - free(cl->host); - cl->host=strdup(name); + rfbErr("rfbProcessClientProtocolVersion: not a valid RFB client: %s\n", pv); + rfbCloseClient(cl); + return; } rfbLog("Client Protocol Version %d.%d\n", major_, minor_); |