From a8eacbb355008218c6f3b8cdd4ffe54a41421915 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 11 Jan 2007 12:03:20 +0000 Subject: [PATCH] assert expects int. (int) can be 0. Use assert(arg!=NULL). --- servers/slapd/overlays/ppolicy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index cd40a9df02..48ecf68219 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -1282,7 +1282,7 @@ ppolicy_add( if ((pa = attr_find( op->oq_add.rs_e->e_attrs, slap_schema.si_ad_userPassword ))) { - assert( pa->a_vals ); + assert( pa->a_vals != NULL ); assert( !BER_BVISNULL( &pa->a_vals[ 0 ] ) ); if ( !BER_BVISNULL( &pa->a_vals[ 1 ] ) ) { -- 2.39.5