[libbdplus-devel] Fix null poiNter dereference

anonymous git at videolan.org
Fri Mar 3 14:33:01 CET 2017


libbdplus | branch: master | anonymous <anonymous at anonymous.org> | Fri Mar  3 15:21:38 2017 +0200| [dda6b259c74f7d56b99d5028c5b3e79c7cce741b] | committer: anonymous

Fix null poiNter dereference

> http://git.videolan.org/gitweb.cgi/libbdplus.git/?a=commit;h=dda6b259c74f7d56b99d5028c5b3e79c7cce741b
---

 src/libbdplus/bdsvm/trap.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/libbdplus/bdsvm/trap.c b/src/libbdplus/bdsvm/trap.c
index bf55856..7581150 100644
--- a/src/libbdplus/bdsvm/trap.c
+++ b/src/libbdplus/bdsvm/trap.c
@@ -1295,7 +1295,6 @@ uint32_t TRAP_MediaCheck(bdplus_config_t *config, uint8_t *FileName, uint32_t Fi
     fd = file_open(config, (char *)FileName);
     if (!fd) {
         BD_DEBUG(DBG_BDPLUS|DBG_CRIT, "[TRAP] TRAP_MediaCheck: failed to open %s\n", FileName);
-        file_close(fd);
         return STATUS_INVALID_PARAMETER;
     }
 #if 0



More information about the libbdplus-devel mailing list