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


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

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

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

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

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

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