Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-547

inappropriate use of sasl_client_init and sasl_client_done

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2-beta0
    • Affects Version/s: 1.1.0
    • Component/s: auth, libmongoc
    • Labels:
      None

      sasl_client_init() and sasl_client_done() are supposed to be global load/unload functions. We call them for each sasl connection we initialize, which seems wrong.

      Also, sasl_client_init() and done() aren't thread safe... We should probably be running those in the driver init() / cleanup(). Also, take a look at whether we need sasl_set_mutex().

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: