mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ldb:ldb_msg.c - move away from "errno"
Reviewed-by: Tridge
This commit is contained in:
parent
516dc404fd
commit
ba5cec5804
@ -130,7 +130,6 @@ static int _ldb_msg_add_el(struct ldb_message *msg,
|
|||||||
els = talloc_realloc(msg, msg->elements,
|
els = talloc_realloc(msg, msg->elements,
|
||||||
struct ldb_message_element, msg->num_elements + 1);
|
struct ldb_message_element, msg->num_elements + 1);
|
||||||
if (!els) {
|
if (!els) {
|
||||||
errno = ENOMEM;
|
|
||||||
return LDB_ERR_OPERATIONS_ERROR;
|
return LDB_ERR_OPERATIONS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -164,7 +163,6 @@ int ldb_msg_add_empty(struct ldb_message *msg,
|
|||||||
el->flags = flags;
|
el->flags = flags;
|
||||||
el->name = talloc_strdup(msg->elements, attr_name);
|
el->name = talloc_strdup(msg->elements, attr_name);
|
||||||
if (!el->name) {
|
if (!el->name) {
|
||||||
errno = ENOMEM;
|
|
||||||
return LDB_ERR_OPERATIONS_ERROR;
|
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,
|
vals = talloc_realloc(msg->elements, el->values, struct ldb_val,
|
||||||
el->num_values+1);
|
el->num_values+1);
|
||||||
if (!vals) {
|
if (!vals) {
|
||||||
errno = ENOMEM;
|
|
||||||
return LDB_ERR_OPERATIONS_ERROR;
|
return LDB_ERR_OPERATIONS_ERROR;
|
||||||
}
|
}
|
||||||
el->values = vals;
|
el->values = vals;
|
||||||
|
Loading…
Reference in New Issue
Block a user