LDAPArrayIterator behaves incorrectly when initialized with an empty array

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.10, 4.0.6, 4.1.7
    • Affects Version/s: 3.6.9, 4.0.4
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Security 2018-12-31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the LDAPArrayIterator() of an empty array is not equal to an empty LDAPArrayIterator(). This causes it code that uses it as a begin iterator in iterator traversal to return the wrong results.

      Example:

      char* empty[] = { 0 };
      LDAPArrayIterator(empty) != LDAPArrayIterator()

       

       

       

              Assignee:
              Mark Benvenuto
              Reporter:
              Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: