have server side reply unexpected_message for hello_request

pull/1/head
toddouska 2012-12-28 14:36:19 -08:00
parent f073f49ead
commit 4c453d4d69
1 changed files with 6 additions and 1 deletions

View File

@ -2609,7 +2609,12 @@ static int DoHelloRequest(CYASSL* ssl, const byte* input, word32* inOutIdx)
}
}
return SendAlert(ssl, alert_warning, no_renegotiation);
if (ssl->options.side == SERVER_END) {
SendAlert(ssl, alert_fatal, unexpected_message); /* try */
return FATAL_ERROR;
}
else
return SendAlert(ssl, alert_warning, no_renegotiation);
}