]> git.sur5r.net Git - openldap/commitdiff
minor cleanup
authorPierangelo Masarati <ando@openldap.org>
Sun, 9 Jan 2005 21:25:12 +0000 (21:25 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 9 Jan 2005 21:25:12 +0000 (21:25 +0000)
servers/slapd/slapi/slapi_pblock.c

index a782b8af386c8f0581070d64181a4519a2f3f6da..79efa4124e461f1aee5663fb9fde92c31e462152 100644 (file)
@@ -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 ||