libaacs | branch: master | npzacs <[email protected]> | Mon Dec 27 14:44:06 2010 
+0200| [d44f39debc6d74bb8a1d6f452af1dfd12531a52a] | committer: npzacs 

Check for NULL pointers in keydbcfg_parse_config()

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

 src/file/keydbcfg-parser.y |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/file/keydbcfg-parser.y b/src/file/keydbcfg-parser.y
index a3d31df..f966d87 100644
--- a/src/file/keydbcfg-parser.y
+++ b/src/file/keydbcfg-parser.y
@@ -424,6 +424,9 @@ hexstring_list
 /* Function to parse a config file */
 int keydbcfg_parse_config(config_file *cfgfile, const char *path)
 {
+  if (!cfgfile || !path)
+    return 0;
+
   FILE * fp = fopen(path, "r");
   if (!fp)
     return 0;

_______________________________________________
libaacs-devel mailing list
[email protected]
http://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to