X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fat.c;h=b28ebc3484533396a7b5a5069e2f9990a30bbd35;hb=cb9a4d01bc1ecf1eeb3fb7ef39067b2b30b6c545;hp=6f84f9ad5bd5a18b62dd38976956d9595264f568;hpb=0a438aaf4361027adf02499ff1eb2ec072e127e3;p=openldap diff --git a/servers/slapd/at.c b/servers/slapd/at.c index 6f84f9ad5b..b28ebc3484 100644 --- a/servers/slapd/at.c +++ b/servers/slapd/at.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * 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 @@ -365,6 +365,10 @@ at_next( AttributeType **at ) } #endif + if ( *at == NULL ) { + return 0; + } + *at = LDAP_STAILQ_NEXT(*at,sat_next); return (*at != NULL);