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

Pass const int* instead of timeval* for LDAP_OPT_TIMELIMIT

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Security 2022-12-12

      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.

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

              Created:
              Updated:
              Resolved: