From a222469d0d0abf7499a99ad70c92b0f515f89a43 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sat, 13 Aug 2005 21:10:41 +0000 Subject: [PATCH] assert expects int. (int) can be 0. Use assert(arg!=0/NULL). --- servers/slapd/saslauthz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 3e28af1fd6..335ae63843 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -452,7 +452,7 @@ is_dn: bv.bv_len = in->bv_len - ( bv.bv_val - in->bv_val ); } /* Grab the searchbase */ - assert( ludp->lud_dn ); + assert( ludp->lud_dn != NULL ); ber_str2bv( ludp->lud_dn, 0, 0, &bv ); rc = dnValidate( NULL, &bv ); @@ -830,7 +830,7 @@ is_dn: bv.bv_len = val->bv_len - ( bv.bv_val - val->bv_val ); } /* Grab the searchbase */ - assert( ludp->lud_dn ); + assert( ludp->lud_dn != NULL ); if ( ludp->lud_dn ) { struct berval out = BER_BVNULL; -- 2.39.5