Details
-
Bug
-
Status: Fixed
-
Medium
-
Resolution: Fixed
-
Network Development Kit
-
NDK-217
-
3.30.00
-
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 );