Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-9821

NDK_accept() incorrectly requires an initialized sockaddr

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Fixed
    • Priority: Medium
    • Resolution: Fixed
    • Product:
      Network Development Kit
    • Internal ID:
      NDK-452
    • Found In Release:
      NDK_3_60_00
    • Fix In Release:
      NDK_3_76_00

      Description

      The code checks pName->sa_family to decide if it expects IPv4 or IPv6 and checks if the size of the struct is sufficient for IPv4 or IPv6.

      The documentation says "The argument addr is a result parameter that is filled in with the address of the connecting entity as known to the communications layer." Therefore this will return the address information and should not be required to be initialized before NDK_accept() is called. Currently if this is not initialized it may incorrectly return EINVAL.

      Link to E2E post:

      https://e2e.ti.com/support/processors/f/791/t/826670

        Attachments

          Activity

            People

            Assignee:
            syncuser TI User
            Reporter:
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: