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

DNSGetReply() mishandles "additional records" field

    XMLWordPrintable

    Details

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

      Description

      The implementation of DNSGetReply() incorrectly assigns pReply->NumAux to the additional record count. It should be assigned the auxiliary record count:

      /* Read the answers */
      pReply->NumAns = NDK_htons( pDNS->NumA );
      ...
      /* Read the authority */
      pReply->NumAuth = NDK_htons( pDNS->NumAuth );
      ...
      /* Read the additional records */
      pReply->NumAux = htons( pDNS->NumA );

      The last line should be changed to use pDNS->NumAux:

      /* Read the additional records */
      pReply->NumAux = NDK_htons( pDNS->NumAux );

        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: