From: Howard Chu Date: Tue, 23 Dec 2003 18:40:56 +0000 (+0000) Subject: ITS#2887 fix slapi crash X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~112 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c7da63df3d4fd179b22b4413f2199dbe45ee256d;p=openldap ITS#2887 fix slapi crash --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 0d84cc0576..b3971d5284 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -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; }