Skip to content

avahi: fix missing fflush() in address resolution - #113

Merged
evverx merged 1 commit into
avahi:masterfrom
mikelolasagasti:fedora-static
Feb 10, 2026
Merged

avahi: fix missing fflush() in address resolution#113
evverx merged 1 commit into
avahi:masterfrom
mikelolasagasti:fedora-static

Conversation

@mikelolasagasti

Copy link
Copy Markdown
Contributor

The function avahi_resolve_address_with_socket writes a command to the socket using fprintf and immediately attempts to read the response using fgets.

Fixes downstream report detected using static analyzers https://bugzilla.redhat.com/show_bug.cgi?id=2362872.

The function `avahi_resolve_address_with_socket` writes a command to
the socket using `fprintf` and immediately attempts to read the
response using `fgets`.

Fixes downstream report detected using static analyzers rhbz#2362872.

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
@evverx

evverx commented Feb 10, 2026

Copy link
Copy Markdown
Collaborator

Thank you for the PR.

OpenScanHub should have confirmed that the cppcheck warning is gone but it failed with "It was not possible to download the SRPMs needed for the differential scan." in https://github.com/avahi/nss-mdns/pull/113/checks?check_run_id=63089598851.

The other packit jobs appear to have failed due to some Fedora infrastructure issues

Failed to download metadata
 Error loading local metadata for repository "fedora"
  Librepo error: Checksum error /var/lib/mock/fedora-rawhide-ppc64le-1770724223.144416/root/var/cache/dnf/fedora-1c578a7639193129/repodata/a4a958b0c7fa4d6bb042d2419af504793a5dc27eb1bbd21c1803bc2257c7eec5-primary.xml.zck: Unable to read zchunk lead

Either way It's now consistent with avahi_resolve_name_with_socket where fflush is already used. Merging.

@evverx
evverx merged commit 3292b17 into avahi:master Feb 10, 2026
19 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants