From c7da63df3d4fd179b22b4413f2199dbe45ee256d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 23 Dec 2003 18:40:56 +0000 Subject: [PATCH] ITS#2887 fix slapi crash --- servers/slapd/result.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5