shithub: libdvdcss

Download patch

ref: f88ec35dfd616ca94217658523ca5b8de0a2cb73
parent: eab9626405faad756ef83f150505467f20bc931f
author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
date: Thu Mar 1 06:12:10 EST 2018

Fix potential free of uninitialized pointer

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>

--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -522,6 +522,7 @@
     if( psz_target == NULL &&
       ( p_stream == NULL || p_stream_cb == NULL ) )
     {
+        dvdcss->psz_device = NULL;
         goto error;
     }