Commit 84176182 authored by runge's avatar runge

move all types into handler loop.

parent 6c8e6e06
...@@ -277,19 +277,18 @@ rfbProcessClientSecurityType(rfbClientPtr cl) ...@@ -277,19 +277,18 @@ rfbProcessClientSecurityType(rfbClientPtr cl)
return; return;
} }
if(chosenType == rfbSecTypeNone) {
cl->state = RFB_INITIALISATION;
return;
}
/* Make sure it was present in the list sent by the server. */ /* Make sure it was present in the list sent by the server. */
for (handler = securityHandlers; handler; for (handler = securityHandlers; handler; handler = handler->next) {
handler = handler->next)
if (chosenType == handler->type) { if (chosenType == handler->type) {
handler->handler(cl); if (chosenType == rfbSecTypeNone) {
return; cl->state = RFB_INITIALISATION;
return;
} else {
handler->handler(cl);
return;
}
} }
}
rfbLog("rfbProcessClientSecurityType: wrong security type requested\n"); rfbLog("rfbProcessClientSecurityType: wrong security type requested\n");
rfbCloseClient(cl); rfbCloseClient(cl);
......
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