View | Details | Raw Unified | Return to bug 49930 | Differences between
and this patch

Collapse All | Expand All

(-)openldap-2.4.45+dfsg/servers/slapd/schema_init.c (-6 / +6 lines)
 Lines 5943-5960   again: Link Here 
5943
	if( BER_BVISEMPTY( &tmp ) ) return LDAP_SUCCESS;
5943
	if( BER_BVISEMPTY( &tmp ) ) return LDAP_SUCCESS;
5944
5944
5945
	while( !BER_BVISEMPTY( &tmp ) && ( tmp.bv_val[0] == ' ' ) ) {
5945
	while( !BER_BVISEMPTY( &tmp ) && ( tmp.bv_val[0] == ' ' ) ) {
5946
		tmp.bv_len++;
5946
		tmp.bv_len--;
5947
		tmp.bv_val--;
5947
		tmp.bv_val++;
5948
	}
5948
	}
5949
	if( !BER_BVISEMPTY( &tmp ) && ( tmp.bv_val[0] == '$' ) ) {
5949
	if( !BER_BVISEMPTY( &tmp ) && ( tmp.bv_val[0] == '$' ) ) {
5950
		tmp.bv_len++;
5950
		tmp.bv_len--;
5951
		tmp.bv_val--;
5951
		tmp.bv_val++;
5952
	} else {
5952
	} else {
5953
		return LDAP_INVALID_SYNTAX;
5953
		return LDAP_INVALID_SYNTAX;
5954
	}
5954
	}
5955
	while( !BER_BVISEMPTY( &tmp ) && ( tmp.bv_val[0] == ' ' ) ) {
5955
	while( !BER_BVISEMPTY( &tmp ) && ( tmp.bv_val[0] == ' ' ) ) {
5956
		tmp.bv_len++;
5956
		tmp.bv_len--;
5957
		tmp.bv_val--;
5957
		tmp.bv_val++;
5958
	}
5958
	}
5959
5959
5960
	goto again;
5960
	goto again;

Return to bug 49930