]> git.sur5r.net Git - openldap/commitdiff
ITS#2887 fix slapi crash
authorHoward Chu <hyc@openldap.org>
Tue, 23 Dec 2003 18:40:56 +0000 (18:40 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 23 Dec 2003 18:40:56 +0000 (18:40 +0000)
servers/slapd/result.c

index 0d84cc0576a2f07ab88a12696093d1d75885284e..b3971d5284a3e8f5c136a657ca8aa217aa0bb235 100644 (file)
@@ -248,7 +248,7 @@ send_ldap_controls( Operation *o, BerElement *ber, LDAPControl **c )
         * plugin.
         */
 
-       if ( slapi_pblock_get( o->o_pb, SLAPI_RESCONTROLS, &sctrls ) != 0 ) {
+       if ( o->o_pb && slapi_pblock_get( o->o_pb, SLAPI_RESCONTROLS, &sctrls ) != 0 ) {
                sctrls = NULL;
        }