apps/srp.c:149: error: NULL_DEREFERENCE
  pointer `pp` last assigned on line 148 could be null and is dereferenced at line 149, column 37.
Showing all 12 steps of the trace


apps/srp.c:143:1: start of procedure print_entry()
141.   	}
142.   
143. > static void print_entry(CA_DB *db, BIO *bio, int indx, int verbose, char *s)
144.   	{
145.   	if (indx >= 0 && verbose)

apps/srp.c:145:6: Taking true branch
143.   static void print_entry(CA_DB *db, BIO *bio, int indx, int verbose, char *s)
144.   	{
145.   	if (indx >= 0 && verbose)
            ^
146.   		{
147.   		int j;

apps/srp.c:145:19: Taking true branch
143.   static void print_entry(CA_DB *db, BIO *bio, int indx, int verbose, char *s)
144.   	{
145.   	if (indx >= 0 && verbose)
                         ^
146.   		{
147.   		int j;

apps/srp.c:148:15: Condition is true
146.   		{
147.   		int j;
148.   		char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);
                     ^
149.   		BIO_printf(bio, "%s \"%s\"\n", s, pp[DB_srpid]);
150.   		for (j = 0; j < DB_NUMBER; j++)

apps/srp.c:148:3: 
146.   		{
147.   		int j;
148. > 		char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);
149.   		BIO_printf(bio, "%s \"%s\"\n", s, pp[DB_srpid]);
150.   		for (j = 0; j < DB_NUMBER; j++)

crypto/stack/stack.c:300:1: start of procedure sk_value()
  298.   }
  299.   
  300. > void *sk_value(const _STACK *st, int i)
  301.   {
  302.   	if(!st || (i < 0) || (i >= st->num)) return NULL;

crypto/stack/stack.c:302:6: Taking false branch
  300.   void *sk_value(const _STACK *st, int i)
  301.   {
  302.   	if(!st || (i < 0) || (i >= st->num)) return NULL;
              ^
  303.   	return st->data[i];
  304.   }

crypto/stack/stack.c:302:13: Taking false branch
  300.   void *sk_value(const _STACK *st, int i)
  301.   {
  302.   	if(!st || (i < 0) || (i >= st->num)) return NULL;
                     ^
  303.   	return st->data[i];
  304.   }

crypto/stack/stack.c:302:24: Taking true branch
  300.   void *sk_value(const _STACK *st, int i)
  301.   {
  302.   	if(!st || (i < 0) || (i >= st->num)) return NULL;
                                ^
  303.   	return st->data[i];
  304.   }

crypto/stack/stack.c:302:39: 
  300.   void *sk_value(const _STACK *st, int i)
  301.   {
  302. > 	if(!st || (i < 0) || (i >= st->num)) return NULL;
  303.   	return st->data[i];
  304.   }

crypto/stack/stack.c:304:1: return from a call to sk_value
  302.   	if(!st || (i < 0) || (i >= st->num)) return NULL;
  303.   	return st->data[i];
  304. > }
  305.   
  306.   void *sk_set(_STACK *st, int i, void *value)

apps/srp.c:149:3: 
147.   		int j;
148.   		char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);
149. > 		BIO_printf(bio, "%s \"%s\"\n", s, pp[DB_srpid]);
150.   		for (j = 0; j < DB_NUMBER; j++)
151.   			{
