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


crypto/rand/rand_lib.c:754:1: start of procedure RAND_add()
752.   }
753.   
754. > void RAND_add(const void *buf, int num, double randomness)
755.   {
756.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:756:5: 
754.   void RAND_add(const void *buf, int num, double randomness)
755.   {
756. >     const RAND_METHOD *meth = RAND_get_rand_method();
757.   
758.       if (meth->add != NULL)

crypto/rand/rand_lib.c:686:1: start of procedure RAND_get_rand_method()
  684.   #endif
  685.   
  686. > const RAND_METHOD *RAND_get_rand_method(void)
  687.   {
  688.   #ifdef FIPS_MODE

crypto/rand/rand_lib.c:689:5: 
  687.   {
  688.   #ifdef FIPS_MODE
  689. >     return NULL;
  690.   #else
  691.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:718:1: return from a call to RAND_get_rand_method
  716.       return tmp_meth;
  717.   #endif
  718. > }
  719.   
  720.   #if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODE)

crypto/rand/rand_lib.c:758:9: 
756.       const RAND_METHOD *meth = RAND_get_rand_method();
757.   
758. >     if (meth->add != NULL)
759.           meth->add(buf, num, randomness);
760.   }
