From 28b18b18693d3eccff1ac3804c5df6d67f5c80a6 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 9 Jan 2005 21:25:12 +0000 Subject: [PATCH] minor cleanup --- servers/slapd/slapi/slapi_pblock.c | 4 ++++ 1 file changed, 4 insertions(+) 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 || -- 2.39.5