apps/srp.c:69: error: NULL_DEREFERENCE
  pointer `pp` last assigned on line 68 could be null and is dereferenced at line 69, column 47.
Showing all 11 steps of the trace


apps/srp.c:64:1: start of procedure print_entry()
62.   }
63.   
64. > static void print_entry(CA_DB *db, int indx, int verbose, char *s)
65.   {
66.       if (indx >= 0 && verbose) {

apps/srp.c:66:9: Taking true branch
64.   static void print_entry(CA_DB *db, int indx, int verbose, char *s)
65.   {
66.       if (indx >= 0 && verbose) {
              ^
67.           int j;
68.           char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);

apps/srp.c:66:22: Taking true branch
64.   static void print_entry(CA_DB *db, int indx, int verbose, char *s)
65.   {
66.       if (indx >= 0 && verbose) {
                           ^
67.           int j;
68.           char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);

apps/srp.c:68:9: 
66.       if (indx >= 0 && verbose) {
67.           int j;
68. >         char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);
69.           BIO_printf(bio_err, "%s \"%s\"\n", s, pp[DB_srpid]);
70.           for (j = 0; j < DB_NUMBER; j++) {

include/openssl/txt_db.h:31:1: start of procedure sk_OPENSSL_PSTRING_value()
  29.   
  30.   typedef OPENSSL_STRING *OPENSSL_PSTRING;
  31. > DEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING)
  32.   
  33.   typedef struct txt_db_st {

crypto/stack/stack.c:380:1: start of procedure OPENSSL_sk_value()
    378.   }
    379.   
    380. > void *OPENSSL_sk_value(const OPENSSL_STACK *st, int i)
    381.   {
    382.       if (st == NULL || i < 0 || i >= st->num)

crypto/stack/stack.c:382:9: Taking true branch
    380.   void *OPENSSL_sk_value(const OPENSSL_STACK *st, int i)
    381.   {
    382.       if (st == NULL || i < 0 || i >= st->num)
                   ^
    383.           return NULL;
    384.       return (void *)st->data[i];

crypto/stack/stack.c:383:9: 
    381.   {
    382.       if (st == NULL || i < 0 || i >= st->num)
    383. >         return NULL;
    384.       return (void *)st->data[i];
    385.   }

crypto/stack/stack.c:385:1: return from a call to OPENSSL_sk_value
    383.           return NULL;
    384.       return (void *)st->data[i];
    385. > }
    386.   
    387.   void *OPENSSL_sk_set(OPENSSL_STACK *st, int i, const void *data)

include/openssl/txt_db.h:31:1: return from a call to sk_OPENSSL_PSTRING_value
  29.   
  30.   typedef OPENSSL_STRING *OPENSSL_PSTRING;
  31. > DEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING)
  32.   
  33.   typedef struct txt_db_st {

apps/srp.c:69:9: 
67.           int j;
68.           char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);
69. >         BIO_printf(bio_err, "%s \"%s\"\n", s, pp[DB_srpid]);
70.           for (j = 0; j < DB_NUMBER; j++) {
71.               BIO_printf(bio_err, "  %d = \"%s\"\n", j, pp[j]);
