Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iiod: dns-sd: Fix invalid check of hostname vs. "none" string
By doing: strncmp(host, "none", sizeof("none") - 1) We actually only check that the first 4 characters are "none"; as a result, a "none_foobar.local" hostname would match as well. The solution is to match the ending \0 as well: strncmp(host, "none", sizeof("none")) which can be simplified to just strcmp(host, "none") Signed-off-by: Paul Cercueil <[email protected]>
- Loading branch information