File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -523,6 +523,8 @@ int wolfSSL_memrestore_session_cache(const void* mem, int sz)
523523
524524 XMEMCPY (& SessionCache [i ], row ++ , SIZEOF_SESSION_ROW );
525525 #ifndef SESSION_CACHE_DYNAMIC_MEM
526+ #if defined(HAVE_SESSION_TICKET ) || \
527+ (defined(SESSION_CERTS ) && defined(OPENSSL_EXTRA ))
526528 /* Reset pointers to safe values after raw copy */
527529 {
528530 int j ;
@@ -538,6 +540,7 @@ int wolfSSL_memrestore_session_cache(const void* mem, int sz)
538540 }
539541 }
540542 #endif
543+ #endif
541544 #ifdef ENABLE_SESSION_CACHE_ROW_LOCK
542545 SESSION_ROW_UNLOCK (& SessionCache [i ]);
543546 #endif
@@ -698,6 +701,8 @@ int wolfSSL_restore_session_cache(const char *fname)
698701
699702 ret = (int )XFREAD (& SessionCache [i ], SIZEOF_SESSION_ROW , 1 , file );
700703 #ifndef SESSION_CACHE_DYNAMIC_MEM
704+ #if defined(HAVE_SESSION_TICKET ) || \
705+ (defined(SESSION_CERTS ) && defined(OPENSSL_EXTRA ))
701706 /* Reset pointers to safe values after raw copy */
702707 {
703708 int j ;
@@ -713,6 +718,7 @@ int wolfSSL_restore_session_cache(const char *fname)
713718 }
714719 }
715720 #endif
721+ #endif
716722 #ifdef ENABLE_SESSION_CACHE_ROW_LOCK
717723 SESSION_ROW_UNLOCK (& SessionCache [i ]);
718724 #endif
Original file line number Diff line number Diff line change @@ -34590,7 +34590,7 @@ static int test_zd21422_pkcs7_padding_oracle(void)
3459034590 byte encoded[4096];
3459134591 byte output[256];
3459234592 byte modified[4096];
34593- int encodedSz;
34593+ int encodedSz = 0 ;
3459434594 int outSz;
3459534595 int ctOff = -1;
3459634596 int ctLen = 0;
You can’t perform that action at this time.
0 commit comments