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

Close keyFile filedescriptor after reading the security key

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.2.0-rc1
    • Affects Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Fully Compatible
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: