-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coverity: fix dns_sd.c Read from pointer after free
Fix CID 355434 (#1-2 of 2): Read from pointer after free (USE_AFTER_FREE) deref_after_free: Dereferencing freed pointer ndata. that Coverity pointed out. We were freeing the pointer and then using it at the top of the loop, so change the logic to fix this. Signed-off-by: Robin Getz <[email protected]>
- Loading branch information
Showing
1 changed file
with
10 additions
and
5 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