]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/at.c
ITS#8199 fix NULL ptr dereference in at_next
[openldap] / servers / slapd / at.c
index c4d65cfd615a60d2c26db2ec87cc8cbf1e00cfc0..d361d91df50823bf4d3497f784bc7e794871683f 100644 (file)
@@ -365,6 +365,10 @@ at_next( AttributeType **at )
        }
 #endif
 
+       if ( *at == NULL ) {
+               return 0;
+       }
+
        *at = LDAP_STAILQ_NEXT(*at,sat_next);
 
        return (*at != NULL);