[evolution-data-server/gnome-43] I#420 - LDAP: Use valid values for error paths of contact create/remove
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-43] I#420 - LDAP: Use valid values for error paths of contact create/remove
- Date: Tue, 4 Oct 2022 16:31:15 +0000 (UTC)
commit ab7d066f2dfbf789a4592f636e842cdf2259315a
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 4 18:30:03 2022 +0200
I#420 - LDAP: Use valid values for error paths of contact create/remove
Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/420
src/addressbook/backends/ldap/e-book-backend-ldap.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/addressbook/backends/ldap/e-book-backend-ldap.c
b/src/addressbook/backends/ldap/e-book-backend-ldap.c
index 1d9455047..721196adb 100644
--- a/src/addressbook/backends/ldap/e-book-backend-ldap.c
+++ b/src/addressbook/backends/ldap/e-book-backend-ldap.c
@@ -5730,7 +5730,7 @@ book_backend_ldap_create_contacts (EBookBackend *backend,
if (LDAP_SUCCESS != err) {
e_data_book_respond_create_contacts (
- create_op->op.book,
+ book,
opid,
ldap_error_to_response (err),
NULL);
@@ -5864,7 +5864,7 @@ book_backend_ldap_remove_contacts (EBookBackend *backend,
** capabilities, we should only get 1 length lists here, so
** the id we're deleting is the first and only id in the list.
*/
- remove_op = g_new (LDAPRemoveOp, 1);
+ remove_op = g_new0 (LDAPRemoveOp, 1);
remove_op->id = g_strdup (uids[0]);
do {
@@ -5884,7 +5884,7 @@ book_backend_ldap_remove_contacts (EBookBackend *backend,
if (ldap_error != LDAP_SUCCESS) {
e_data_book_respond_remove_contacts (
- remove_op->op.book,
+ book,
opid,
ldap_error_to_response (ldap_error),
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]