mr should not be NULL; fixes ITS#2196

This commit is contained in:
Pierangelo Masarati 2002-11-24 21:36:14 +00:00
parent 7091853dfc
commit 95f75aaf15

View file

@ -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;
}