Commit 0a20171d authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard Committed by Paul Bakker
Browse files

Fix compiler warning from gcc -Os

parent 70f1768b
......@@ -180,6 +180,8 @@ static int ssl_write_ticket( ssl_context *ssl, size_t *tlen )
unsigned char iv[16];
size_t clear_len, enc_len, pad_len, i;
*tlen = 0;
if( ssl->ticket_keys == NULL )
return( POLARSSL_ERR_SSL_BAD_INPUT_DATA );
......
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