crypto/rand/rand_lib.c:788: error: NULL_DEREFERENCE
  pointer `meth` last assigned on line 786 could be null and is dereferenced at line 788, column 9.
Showing all 6 steps of the trace


crypto/rand/rand_lib.c:784:1: start of procedure RAND_seed()
782.   #endif
783.   
784. > void RAND_seed(const void *buf, int num)
785.   {
786.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:786:5: 
784.   void RAND_seed(const void *buf, int num)
785.   {
786. >     const RAND_METHOD *meth = RAND_get_rand_method();
787.   
788.       if (meth->seed != NULL)

crypto/rand/rand_lib.c:724:1: start of procedure RAND_get_rand_method()
  722.   #endif
  723.   
  724. > const RAND_METHOD *RAND_get_rand_method(void)
  725.   {
  726.   #ifdef FIPS_MODE

crypto/rand/rand_lib.c:727:5: 
  725.   {
  726.   #ifdef FIPS_MODE
  727. >     return NULL;
  728.   #else
  729.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:756:1: return from a call to RAND_get_rand_method
  754.       return tmp_meth;
  755.   #endif
  756. > }
  757.   
  758.   #if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODE)

crypto/rand/rand_lib.c:788:9: 
786.       const RAND_METHOD *meth = RAND_get_rand_method();
787.   
788. >     if (meth->seed != NULL)
789.           meth->seed(buf, num);
790.   }
