Close keyFile filedescriptor after reading the security key

XMLWordPrintableJSON

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

      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 Marshall
            Reporter:
            Jared Rosoff (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: