From: Pierangelo Masarati Date: Sun, 24 Nov 2002 21:36:14 +0000 (+0000) Subject: mr should not be NULL; fixes ITS#2196 X-Git-Tag: NO_SLAP_OP_BLOCKS~778 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95f75aaf1567f6f476900551da9d9bce994b2c34;p=openldap mr should not be NULL; fixes ITS#2196 --- diff --git a/servers/slapd/value.c b/servers/slapd/value.c index 9df3ab2037..9ed1ad969f 100644 --- a/servers/slapd/value.c +++ b/servers/slapd/value.c @@ -324,7 +324,10 @@ value_match( struct berval nv1 = { 0, NULL }; struct berval nv2 = { 0, NULL }; - if( !mr->smr_match ) { + /* + * FIXME: mr should NOT be NULL ... + */ + if( !mr || !mr->smr_match ) { return LDAP_INAPPROPRIATE_MATCHING; }