diff options
author | Simon Brandner <simon.brandner@partner.bmw.de> | 2013-01-08 15:38:07 +0100 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2013-07-19 16:54:14 +0200 |
commit | 3774bc35a6491de7bd82e5f955b78f3a9ee70116 (patch) | |
tree | a80958e1347d9dc4ebd4406aa3265a1a77cc9200 /src/daemon/dlt_daemon_common.c | |
parent | a90c37bddb39572687d12d75e3ce5a5e8ecd6a71 (diff) | |
download | DLT-daemon-3774bc35a6491de7bd82e5f955b78f3a9ee70116.tar.gz |
fixed possible overflow in dlt-system-filetransfer and missing fclose in dlt_daemon_common
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/daemon/dlt_daemon_common.c')
-rw-r--r-- | src/daemon/dlt_daemon_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
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! } |