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


crypto/rand/rand_lib.c:769:1: start of procedure RAND_bytes()
767.   }
768.   
769. > int RAND_bytes(unsigned char *buf, int num)
770.   {
771.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:771:5: 
769.   int RAND_bytes(unsigned char *buf, int num)
770.   {
771. >     const RAND_METHOD *meth = RAND_get_rand_method();
772.   
773.       if (meth->bytes != NULL)

crypto/rand/rand_lib.c:671:1: start of procedure RAND_get_rand_method()
  669.   #endif
  670.   
  671. > const RAND_METHOD *RAND_get_rand_method(void)
  672.   {
  673.   #ifdef FIPS_MODE

crypto/rand/rand_lib.c:674:5: 
  672.   {
  673.   #ifdef FIPS_MODE
  674. >     return NULL;
  675.   #else
  676.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:703:1: return from a call to RAND_get_rand_method
  701.       return tmp_meth;
  702.   #endif
  703. > }
  704.   
  705.   #if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODE)

crypto/rand/rand_lib.c:773:9: 
771.       const RAND_METHOD *meth = RAND_get_rand_method();
772.   
773. >     if (meth->bytes != NULL)
774.           return meth->bytes(buf, num);
775.       RANDerr(RAND_F_RAND_BYTES, RAND_R_FUNC_NOT_IMPLEMENTED);
