aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-01-25 06:45:40 +0800
committerChris Toshok <toshok@src.gnome.org>2001-01-25 06:45:40 +0800
commit57f0e85f6ccbe64904414fb6ede859dcc8acdc5b (patch)
treebdd0ec5d22948c1c798d1e469ce2102f23e964ec /addressbook/backend
parent7a45edf2b5dbcd98a4b4ae7f9c36dd2f280f06af (diff)
downloadgsoc2013-evolution-57f0e85f6ccbe64904414fb6ede859dcc8acdc5b.tar.gz
gsoc2013-evolution-57f0e85f6ccbe64904414fb6ede859dcc8acdc5b.tar.zst
gsoc2013-evolution-57f0e85f6ccbe64904414fb6ede859dcc8acdc5b.zip
make sure to add the lengths here (include the \0? anyone?).
2001-01-24 Chris Toshok <toshok@ximian.com> * backend/pas/pas-backend-ldap.c (email_ber_func): make sure to add the lengths here (include the \0? anyone?). (build_mods_from_ecards): if we're filling in mod->mod_bvalues, set mod_op |= LDAP_MOD_BVALUES. svn path=/trunk/; revision=7791
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index 46681af3a6..6d7c9f5f8f 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -482,6 +482,7 @@ build_mods_from_ecards (ECardSimple *current, ECardSimple *new, gboolean *new_dn
mod->mod_values[1] = NULL;
}
else {
+ mod->mod_op |= LDAP_MOD_BVALUES;
mod->mod_bvalues = prop_info[i].ber_func (new);
}
@@ -1005,8 +1006,10 @@ email_ber_func(ECardSimple *card)
j = 0;
for (i = 0; i < 3; i ++) {
- if (emails[i])
- result[j++]->bv_val = g_strdup (emails[i]);
+ if (emails[i]) {
+ result[j]->bv_val = g_strdup (emails[i]);
+ result[j++]->bv_len = strlen (emails[i]) + 1;
+ }
}
result[num] = NULL;