Skip to content

Commit

Permalink
core/net/resolv: Fix for resolving CNAME records.
Browse files Browse the repository at this point in the history
  • Loading branch information
darconeous committed Mar 15, 2013
1 parent 639a9ca commit 7e9f472
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/net/resolv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,13 +1013,14 @@ newdata(void)
nanswers = 1;
}

/* This is disabled for now, so that we don't fail on CNAME records.
#if RESOLV_VERIFY_ANSWER_NAMES
if(namemapptr &&
!dns_name_isequal(queryptr, namemapptr->name, uip_appdata)) {
if(namemapptr && !dns_name_isequal(queryptr, namemapptr->name, uip_appdata)) {
DEBUG_PRINTF("resolver: Answer name doesn't match question...!\n");
goto skip_to_next_answer;
}
#endif
*/

DEBUG_PRINTF("resolver: Answer for \"%s\" is usable.\n",
namemapptr->name);
Expand Down

0 comments on commit 7e9f472

Please sign in to comment.