1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Description: Use correct variable in while loop (msgid -> msgidp)
Author: Francois Masson <francois.masson@univ-orleans.fr>
--- a/ldap2zone.c
+++ b/ldap2zone.c
@@ -301,7 +301,7 @@
if (msgid == -1)
err(argv[0], "ldap_search() failed");
- while ((rc = ldap_result(ld, msgid, 0, NULL, &res)) != LDAP_RES_SEARCH_RESULT ) {
+ while ((rc = ldap_result(ld, msgidp, 0, NULL, &res)) != LDAP_RES_SEARCH_RESULT ) {
/* not supporting continuation references at present */
if (rc != LDAP_RES_SEARCH_ENTRY)
err(argv[0], "ldap_result() returned cont.ref? Exiting");
|