/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2013 The OpenLDAP Foundation.
+ * Copyright 1998-2017 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
}
#endif
+ if ( *at == NULL ) {
+ return 0;
+ }
+
*at = LDAP_STAILQ_NEXT(*at,sat_next);
return (*at != NULL);