From: Matthias Dieter Wallnöfer Date: Thu, 26 May 2011 07:25:16 +0000 (+0200) Subject: ldb:ldb_msg.c - move away from "errno" X-Git-Tag: samba-4.0.0alpha16^2~347 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=ba5cec58049fd9ca8cb9d0d1706ed2e34328335f;p=samba.git ldb:ldb_msg.c - move away from "errno" Reviewed-by: Tridge --- diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c index 9c5a279b8a7..28c414e6b23 100644 --- a/source4/lib/ldb/common/ldb_msg.c +++ b/source4/lib/ldb/common/ldb_msg.c @@ -130,7 +130,6 @@ static int _ldb_msg_add_el(struct ldb_message *msg, els = talloc_realloc(msg, msg->elements, struct ldb_message_element, msg->num_elements + 1); if (!els) { - errno = ENOMEM; return LDB_ERR_OPERATIONS_ERROR; } @@ -164,7 +163,6 @@ int ldb_msg_add_empty(struct ldb_message *msg, el->flags = flags; el->name = talloc_strdup(msg->elements, attr_name); if (!el->name) { - errno = ENOMEM; return LDB_ERR_OPERATIONS_ERROR; } @@ -229,7 +227,6 @@ int ldb_msg_add_value(struct ldb_message *msg, vals = talloc_realloc(msg->elements, el->values, struct ldb_val, el->num_values+1); if (!vals) { - errno = ENOMEM; return LDB_ERR_OPERATIONS_ERROR; } el->values = vals;