Commit 658bef5f authored by runge's avatar runge

Remove never used protocol version name string.

parent 596331a5
...@@ -599,15 +599,10 @@ rfbProcessClientProtocolVersion(rfbClientPtr cl) ...@@ -599,15 +599,10 @@ rfbProcessClientProtocolVersion(rfbClientPtr cl)
pv[sz_rfbProtocolVersionMsg] = 0; pv[sz_rfbProtocolVersionMsg] = 0;
if (sscanf(pv,rfbProtocolVersionFormat,&major_,&minor_) != 2) { 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); rfbErr("rfbProcessClientProtocolVersion: not a valid RFB client: %s\n", pv);
rfbCloseClient(cl); rfbCloseClient(cl);
return; return;
} }
free(cl->host);
cl->host=strdup(name);
}
rfbLog("Client Protocol Version %d.%d\n", major_, minor_); rfbLog("Client Protocol Version %d.%d\n", major_, minor_);
if (major_ != rfbProtocolMajorVersion) { if (major_ != rfbProtocolMajorVersion) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment