[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha5-44-gb7c14af

simo idra at samba.org
Wed Jul 9 15:32:41 GMT 2008


On Wed, 2008-07-09 at 09:29 -0500, Michael Adam wrote:

> diff --git a/source/lib/ldb/ldb_map/ldb_map_outbound.c b/source/lib/ldb/ldb_map/ldb_map_outbound.c
> index 86661a2..fbc097f 100644
> --- a/source/lib/ldb/ldb_map/ldb_map_outbound.c
> +++ b/source/lib/ldb/ldb_map/ldb_map_outbound.c
> @@ -195,7 +195,7 @@ static int ldb_msg_replace(struct ldb_message *msg, const struct ldb_message_ele
>  		if (ldb_msg_add_empty(msg, el->name, 0, &old) != 0) {
>  			return -1;
>  		}
> -		talloc_free(old->name);
> +		talloc_free(discard_const_p(char, old->name));
>  	}

is discard_const_p() defined in ldb headers ?
check standalone build please.


Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Senior Software Engineer at Red Hat Inc. <ssorce at redhat.com>



More information about the samba-technical mailing list