Message ID | 20220720143957.868734458@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | rasdaemon: misc fixes | expand |
diff --git a/ras-report.c b/ras-report.c index ea3a9b6..0088745 100644 --- a/ras-report.c +++ b/ras-report.c @@ -768,7 +768,7 @@ int ras_report_mf_event(struct ras_events *ras, struct ras_mf_event *ev) done = 1; mf_fail: - if (sockfd > 0) + if (sockfd >= 0) close(sockfd); if (done)
Found with covscan. Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>