[PATCH 1/4] libdl/archive: Return false on read failure.

chrisj at rtems.org chrisj at rtems.org
Mon Feb 18 02:33:24 UTC 2019


From: Chris Johns <chrisj at rtems.org>

Coverity issue 1442641

Updates #3686
---
 cpukit/libdl/rtl-archive.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/libdl/rtl-archive.c b/cpukit/libdl/rtl-archive.c
index 07d40187e1..faa6616eb1 100644
--- a/cpukit/libdl/rtl-archive.c
+++ b/cpukit/libdl/rtl-archive.c
@@ -474,6 +474,7 @@ rtems_rtl_archives_load_config (rtems_rtl_archives* archives)
       archives->config_length = 0;
       if (rtems_rtl_trace (RTEMS_RTL_TRACE_ARCHIVES))
         printf ("rtl: archive: config read error: %s\n", strerror (errno));
+      return false;
     }
 
     close (fd);
-- 
2.19.1



More information about the devel mailing list