[libbluray-devel] Add missing error return

npzacs git at videolan.org
Thu Feb 25 14:38:10 CET 2016


libbluray | branch: master | npzacs <npzacs at gmail.com> | Thu Feb 25 15:37:17 2016 +0200| [1e6fc78b6200d43dfa9a8da99ed9233b05c15ad0] | committer: npzacs

Add missing error return

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=1e6fc78b6200d43dfa9a8da99ed9233b05c15ad0
---

 src/libbluray/disc/aacs.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libbluray/disc/aacs.c b/src/libbluray/disc/aacs.c
index cd4836e..2d11a73 100644
--- a/src/libbluray/disc/aacs.c
+++ b/src/libbluray/disc/aacs.c
@@ -330,6 +330,7 @@ int libaacs_get_bec_enabled(BD_AACS *p)
     *(void **)(&get_bec) = dl_dlsym(p->h_libaacs, "aacs_get_bus_encryption");
     if (!get_bec) {
         BD_DEBUG(DBG_BLURAY | DBG_CRIT, "aacs_get_bus_encryption() dlsym failed!\n");
+        return 0;
     }
 
     return get_bec(p->aacs) == 3;



More information about the libbluray-devel mailing list