From 95f75aaf1567f6f476900551da9d9bce994b2c34 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 24 Nov 2002 21:36:14 +0000 Subject: [PATCH] mr should not be NULL; fixes ITS#2196 --- servers/slapd/value.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.5