[rtmpdump] r272 - trunk/rtmpsuck.c

hyc subversion at mplayerhq.hu
Thu Feb 25 23:04:38 CET 2010


Author: hyc
Date: Thu Feb 25 23:04:37 2010
New Revision: 272

Log:
Fix SEGV when swfUrl is NULL

Modified:
   trunk/rtmpsuck.c

Modified: trunk/rtmpsuck.c
==============================================================================
--- trunk/rtmpsuck.c	Tue Feb 23 01:30:18 2010	(r271)
+++ trunk/rtmpsuck.c	Thu Feb 25 23:04:37 2010	(r272)
@@ -215,7 +215,7 @@ ServeInvoke(STREAMING_SERVER *server, in
           else if (AVMATCH(&pname, &av_swfUrl))
             {
 #ifdef CRYPTO
-              if (RTMP_HashSWF(pval.av_val, &server->rc.Link.SWFSize, server->hash, 30) == 0)
+              if (pval.av_val && RTMP_HashSWF(pval.av_val, &server->rc.Link.SWFSize, server->hash, 30) == 0)
                 {
                   server->rc.Link.SWFHash.av_val = (char *)server->hash;
                   server->rc.Link.SWFHash.av_len = HASHLEN;


More information about the rtmpdump mailing list