mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
Merge pull request #244 from kaleb-himes/scan-build-fixes3
Remove unnecessary assignment prior to return
This commit is contained in:
@@ -1604,7 +1604,7 @@ int TLSX_SNI_GetFromBuffer(const byte* clientHello, word32 helloSz,
|
|||||||
return BUFFER_ERROR;
|
return BUFFER_ERROR;
|
||||||
|
|
||||||
ato16(clientHello + offset, &len16);
|
ato16(clientHello + offset, &len16);
|
||||||
offset += OPAQUE16_LEN;
|
/* Returning SNI_UNSUPPORTED do not increment offset here */
|
||||||
|
|
||||||
if (len16 != 0) /* session_id_length must be 0 */
|
if (len16 != 0) /* session_id_length must be 0 */
|
||||||
return BUFFER_ERROR;
|
return BUFFER_ERROR;
|
||||||
|
Reference in New Issue
Block a user