Remove unnecessary assignment prior to return

This commit is contained in:
kaleb-himes
2016-01-04 16:08:04 -07:00
parent 8a47c1d01e
commit 21c972f805

View File

@ -1604,7 +1604,7 @@ int TLSX_SNI_GetFromBuffer(const byte* clientHello, word32 helloSz,
return BUFFER_ERROR;
ato16(clientHello + offset, &len16);
offset += OPAQUE16_LEN;
/* Returning SNI_UNSUPPORTED do not increment offset here */
if (len16 != 0) /* session_id_length must be 0 */
return BUFFER_ERROR;