Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71606

Pass const int* instead of timeval* for LDAP_OPT_TIMELIMIT

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2022-12-12

    Description

      When LDAP_OPT_TIMELIMIT is set, OpenLDAP casts the value provided to a const int* (see here). Currently, we pass in the address to timeout, which is of type timeval

      We should pass the correct type here to avoid unexpected behavior due to casting.

      Attachments

        Activity

          People

            militsa.sotirova@mongodb.com Militsa Sotirova
            varun.ravichandran@mongodb.com Varun Ravichandran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: