File: 0013_fix-wrong-var-usage.patch

package info (click to toggle)
ldap2zone 0.2-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 300 kB
  • sloc: ansic: 1,968; sh: 685; makefile: 19
file content (14 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (4)
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");