diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-05-26 09:25:16 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-06-09 09:34:55 +0200 |
commit | ba5cec58049fd9ca8cb9d0d1706ed2e34328335f (patch) | |
tree | b1abd916d4bf5c68bf2b01b7217ca8dc67c0aa7c /source4 | |
parent | 516dc404fd7f299b68adae356f2416ca8e265031 (diff) | |
download | samba-ba5cec58049fd9ca8cb9d0d1706ed2e34328335f.tar.gz samba-ba5cec58049fd9ca8cb9d0d1706ed2e34328335f.tar.bz2 samba-ba5cec58049fd9ca8cb9d0d1706ed2e34328335f.zip |
ldb:ldb_msg.c - move away from "errno"
Reviewed-by: Tridge
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/common/ldb_msg.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c index 9c5a279b8a..28c414e6b2 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; |