forked from libretiny-eu/libretiny
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libs] Fix mDNS string memory corruption, print error on record add f…
…ailure (libretiny-eu#260) * Fixed unsafe conversion to underscore string * Fixed formatting * Save one byte if underscore not needed * Don't allocate new string if already underscored * Fix missing first character while copying * Renamed function and made it inline * Don't use signed index variable when searching for service * Add proper cleanup of LwIPmDNS - Free allocated memory both on end() and in the destructor - Unregister callback from netif * Don't free const pointer * Removed unneeded casting * Don't break the loop if failed to add txt record * Fixed code formatting
- Loading branch information
1 parent
67b92b7
commit d1386a8
Showing
3 changed files
with
54 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters