ambrop7 15 лет назад
Родитель
Сommit
c8ec8b4f1b
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      security/OTPChecker.c
  2. 1 0
      security/OTPGenerator.c

+ 1 - 0
security/OTPChecker.c

@@ -117,6 +117,7 @@ static void work_func (OTPChecker *mc)
 
 
 static void work_done_handler (OTPChecker *mc)
 static void work_done_handler (OTPChecker *mc)
 {
 {
+    ASSERT(mc->tw_have)
     DebugObject_Access(&mc->d_obj);
     DebugObject_Access(&mc->d_obj);
     
     
     // free work
     // free work

+ 1 - 0
security/OTPGenerator.c

@@ -31,6 +31,7 @@ static void work_func (OTPGenerator *g)
 
 
 static void work_done_handler (OTPGenerator *g)
 static void work_done_handler (OTPGenerator *g)
 {
 {
+    ASSERT(g->tw_have)
     DebugObject_Access(&g->d_obj);
     DebugObject_Access(&g->d_obj);
     
     
     // free work
     // free work