[vlc-commits] Update: Fix return value

Petri Hintukainen git at videolan.org
Sun Oct 18 23:13:16 CEST 2015


vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Fri Oct 16 21:33:12 2015 +0300| [8b66dc634b0ee49ac39bea125d1b8f3683968f5d] | committer: Jean-Baptiste Kempf

Update: Fix return value

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b66dc634b0ee49ac39bea125d1b8f3683968f5d
---

 src/misc/update_crypto.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/update_crypto.c b/src/misc/update_crypto.c
index d7cbd47..033cda5 100644
--- a/src/misc/update_crypto.c
+++ b/src/misc/update_crypto.c
@@ -1013,7 +1013,7 @@ int download_signature( vlc_object_t *p_this, signature_packet_t *p_sig,
     if( stream_GetSize( p_stream, &i_size ) || i_size > INT_MAX )
     {
         stream_Delete( p_stream );
-        return NULL;
+        return VLC_EGENERIC;
     }
 
     msg_Dbg( p_this, "Downloading signature (%"PRIu64" bytes)", i_size );



More information about the vlc-commits mailing list