Skip to content

Commit

Permalink
Fix bad return with get_TXT_Record()
Browse files Browse the repository at this point in the history
  • Loading branch information
clementperon authored and mwarning committed Mar 24, 2024
1 parent 6c293e6 commit ba8ef1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ bool get_AAAA_Record(uint8_t addr[16], const char domain_name[])
}
}

int get_TXT_Record(char **addr, const char domain_name[])
bool get_TXT_Record(char **addr, const char domain_name[])
{
if (strcmp("foo.bar.com", domain_name) == 0) {
*addr = "abcdefg";
return 0;
return true;
} else {
return -1;
return false;
}
}

Expand Down

0 comments on commit ba8ef1c

Please sign in to comment.