Package: ldapvi Version: 1.7-9 Severity: normal Dear Maintainer,
I called ldapvi without parameters to get the content of the ldap database. The editor pops up as estimated and I changed some content. After saving and quitting I tried to save the changes with command "y". This was not possible because I didn't insert the credentials. So I typed "r" to rebind and typed in the credentials (which were wrong). I got following output: ldap_bind: Invalid credentials (49) Connected to (null). add: 0, rename: 0, modify: 1, delete: 0 I tried again command "r" to rebind and got: Action? [yYqQvVebB*rsf+?] r ldapvi: unbind.c:45: ldap_unbind_ext: Assertion `ld != ((void *)0)' failed. Aborted (core dumped) I loaded the source tried to find the problem. Here is my suggestion for a repair: diff --git a/ldapvi/ldapvi.c b/ldapvi/ldapvi.c index b594327..628edf7 100644 --- a/ldapvi/ldapvi.c +++ b/ldapvi/ldapvi.c @@ -1642,7 +1642,8 @@ main_loop(LDAP *ld, cmdline *cmdline, puts("Type 'b' to log in."); break; case 'r': - ldap_unbind_s(ld); + if (ld != NULL) + ldap_unbind_s(ld); ld = do_connect( cmdline->server, &cmdline->bind_options, Wiht this changes the described problem is no longer existing. -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (990, 'testing') Architecture: i386 (i686) Kernel: Linux 3.4.0-rc4-pille (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages ldapvi depends on: ii libc6 2.13-38 ii libglib2.0-0 2.33.12+really2.32.4-5 ii libldap-2.4-2 2.4.31-1 ii libncurses5 5.9-10 ii libpopt0 1.16-7 ii libreadline6 6.2+dfsg-0.1 ii libtinfo5 5.9-10 ldapvi recommends no packages. ldapvi suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org