]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/at.c
ITS#8037 - Add support for relax control to delta-syncrepl
[openldap] / servers / slapd / at.c
index 67537420db30ab54a9076a660b251106a9827b1f..b28ebc3484533396a7b5a5069e2f9990a30bbd35 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2014 The OpenLDAP Foundation.
+ * Copyright 1998-2017 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -365,6 +365,10 @@ at_next( AttributeType **at )
        }
 #endif
 
+       if ( *at == NULL ) {
+               return 0;
+       }
+
        *at = LDAP_STAILQ_NEXT(*at,sat_next);
 
        return (*at != NULL);