mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
s4:registry/ldb.c - Break with "NULL" as an error case when the data doesn't fit in the "reg_ldb_pack_value" function
This commit is contained in:
parent
e25e60ba2f
commit
8d0b67b644
@ -186,7 +186,8 @@ static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx,
|
||||
ret = ldb_msg_add_string(msg, "data", conv_str);
|
||||
} else {
|
||||
/* workaround for non-standard data */
|
||||
ret = ldb_msg_add_empty(msg, "data", LDB_FLAG_MOD_DELETE, NULL);
|
||||
talloc_free(msg);
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
ret = ldb_msg_add_empty(msg, "data", LDB_FLAG_MOD_DELETE, NULL);
|
||||
@ -207,7 +208,9 @@ static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx,
|
||||
ret = ldb_msg_add_string(msg, "data", conv_str);
|
||||
} else {
|
||||
/* workaround for non-standard data */
|
||||
ret = ldb_msg_add_empty(msg, "data", LDB_FLAG_MOD_DELETE, NULL);
|
||||
talloc_free(msg);
|
||||
return NULL;
|
||||
|
||||
}
|
||||
} else {
|
||||
ret = ldb_msg_add_empty(msg, "data", LDB_FLAG_MOD_DELETE, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user