From 35d04ef121f4e4e1584f155e6bcf9c6b7a1628c3 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 12 Feb 2002 04:51:23 +0000 Subject: [PATCH] Minor cleanup. --- servers/slapd/ad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/ad.c b/servers/slapd/ad.c index 846d77c351..bd43d0eb7a 100644 --- a/servers/slapd/ad.c +++ b/servers/slapd/ad.c @@ -171,7 +171,7 @@ int slap_bv2ad( if( !slap_syntax_is_binary( desc.ad_type->sat_syntax )) { /* not stored in binary, disallow option */ - *text = "option \"binary\" with type not supported"; + *text = "option \"binary\" not supported with type"; return rtn; } @@ -531,8 +531,8 @@ int slap_bv2undef_ad( } if( !desc ) { - desc = ch_malloc(sizeof(AttributeDescription) + - bv->bv_len + 1); + desc = ch_malloc(sizeof(AttributeDescription) + 1 + + bv->bv_len); desc->ad_flags = SLAP_DESC_NONE; desc->ad_lang.bv_val = NULL; -- 2.39.5