fix regression in r3160 that broke security manager

This commit is contained in:
matthias.ringwald@gmail.com 2015-02-26 14:30:51 +00:00
parent 7a5fe7bded
commit fe9e7f880a

View File

@ -1344,8 +1344,8 @@ static void sm_handle_random_result(uint8_t * data){
break;
}
// retrieve sm_connection provided to sm_aes128_start_encryption
sm_connection_t * connection = sm_aes128_connection_source;
// retrieve sm_connection provided to sm_random_start
sm_connection_t * connection = sm_random_connection_source;
if (!connection) return;
switch (connection->sm_engine_state){
case SM_PH2_W4_RANDOM_TK: