From 3774bc35a6491de7bd82e5f955b78f3a9ee70116 Mon Sep 17 00:00:00 2001 From: Simon Brandner Date: Tue, 8 Jan 2013 15:38:07 +0100 Subject: fixed possible overflow in dlt-system-filetransfer and missing fclose in dlt_daemon_common Signed-off-by: Alexander Wenzel --- src/daemon/dlt_daemon_common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/daemon/dlt_daemon_common.c') diff --git a/src/daemon/dlt_daemon_common.c b/src/daemon/dlt_daemon_common.c index 2f0e73a..28e9d54 100644 --- a/src/daemon/dlt_daemon_common.c +++ b/src/daemon/dlt_daemon_common.c @@ -496,6 +496,7 @@ int dlt_daemon_applications_load(DltDaemon *daemon,const char *filename, int ver { snprintf(str,DLT_DAEMON_COMMON_TEXTBUFSIZE, "dlt_daemon_applications_load fgets(buf,sizeof(buf),fd) returned NULL"); dlt_log(LOG_ERR, str); + fclose(fd); return -1;//seems to be appropriate, but not sure. !feof is already a precondition, so another problem should the reason! } -- cgit v1.2.1