[vlc-devel] [PATCH] Fix return value

Petri Hintukainen phintuka at gmail.com
Fri Oct 16 20:33:12 CEST 2015


---
 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 );
-- 
2.1.4



More information about the vlc-devel mailing list