From: Pierangelo Masarati Date: Sun, 9 Jan 2005 21:25:12 +0000 (+0000) Subject: minor cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~443 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=28b18b18693d3eccff1ac3804c5df6d67f5c80a6;p=openldap minor cleanup --- diff --git a/servers/slapd/slapi/slapi_pblock.c b/servers/slapd/slapi/slapi_pblock.c index a782b8af38..79efa4124e 100644 --- a/servers/slapd/slapi/slapi_pblock.c +++ b/servers/slapd/slapi/slapi_pblock.c @@ -228,6 +228,10 @@ isOkNetscapeParam( int param ) static int isValidParam( Slapi_PBlock *pb, int param ) { + if ( !pb ) { + return INVALID_PARAM; + } + if ( pb->ckParams == TRUE ) { if ( IBM_RESERVED( param ) ) return LDAP_SUCCESS; if (param == SLAPI_PLUGIN_AUDIT_FN ||