From a73826b8345181bbca02259f7e65e4f20c0af308 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 13 Aug 2007 19:33:01 +0000 Subject: [PATCH] don't allow NULL values (because of parsing errors; ITS#5090) --- servers/slapd/entry.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index 213b9f129c..660bcb676b 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -310,6 +310,14 @@ str2entry2( char *s, int checkvals ) if ( i == lines ) break; } + if ( BER_BVISNULL( &vals[i] ) ) { + Debug( LDAP_DEBUG_ANY, + "str2entry: attributeType %s #%d: " + "no value\n", + ad->ad_cname.bv_val, attr_cnt, 0 ); + goto fail; + } + if( slapMode & SLAP_TOOL_MODE ) { struct berval pval; slap_syntax_validate_func *validate = -- 2.39.5