[Date Prev][Date Next] [Chronological] [Thread] [Top]

dnMatch/uniqueMemberMatch core dump (ITS#3247)

Full_Name: Hallvard B Furuseth
Version: HEAD
OS: Solaris
Submission from: (NULL) (
Submitted by: hallvard

test014 dumps core in this log statement in dnMatch():

	LDAP_LOG( CONFIG, ENTRY, "dnMatch: %d\n    %s\n    %s\n", 
		match, value->bv_val, asserted->bv_val  );

because it gets asserted->bv_val == NULL from uniqueMemberMatch().

I don't know if that's an error in dnMatch or in UniqueMemberMatch:
There are many other places in dn.c which assume bv_val != NULL.
If the error is in dn.c, the 'if ( match == 0 )' must also be
fixed to 'if ( match == 0 && value->bv_len )'.