SockAddr constructor should take sockaddr, not sockaddr_storage

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.5, 4.3.3, 3.6.18, 4.0.18
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Security 2019-12-30
    • 50
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The SockAddr constructor:
      SockAddr::SockAddr(const sockaddr_storage& other, socklen_t size)
      will deep copy sockaddr_storage based on sizeof(sockaddr_storage).

      The sockaddr_storage type should only be used for storing data and not be a constructor parameter. The constructor should instead take a (sockaddr*, socklen_t).

            Assignee:
            Mark Benvenuto
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: