Do not set done in case of a fall-through

This commit is contained in:
Paul Bakker 2012-12-19 14:41:14 +01:00
parent 5bd422937a
commit c7878113cb

View File

@ -1793,6 +1793,8 @@ int ssl_write_record( ssl_context *ssl )
SSL_DEBUG_RET( 1, "ssl_hw_record_write", ret ); SSL_DEBUG_RET( 1, "ssl_hw_record_write", ret );
return POLARSSL_ERR_SSL_HW_ACCEL_FAILED; return POLARSSL_ERR_SSL_HW_ACCEL_FAILED;
} }
if( ret == 0 )
done = 1; done = 1;
} }
#endif #endif
@ -1972,6 +1974,8 @@ int ssl_read_record( ssl_context *ssl )
SSL_DEBUG_RET( 1, "ssl_hw_record_read", ret ); SSL_DEBUG_RET( 1, "ssl_hw_record_read", ret );
return POLARSSL_ERR_SSL_HW_ACCEL_FAILED; return POLARSSL_ERR_SSL_HW_ACCEL_FAILED;
} }
if( ret == 0 )
done = 1; done = 1;
} }
#endif #endif