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

Close keyFile filedescriptor after reading the security key

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.2.0-rc1
    • None
    • Security
    • None
    • Fully Compatible
    • ALL

    Description

      https://github.com/mongodb/mongo/blob/master/src/mongo/db/security_common.cpp#L44

      setUpSecurityKey reads the keyfile, but leaks the filedescriptor when the function ends. We should close the file after reading its value.

      Attachments

        Activity

          People

            tad Tad Marshall
            jsr Jared Rosoff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: