Changeset 171

Show
Ignore:
Timestamp:
10/07/07 22:41:13 (11 months ago)
Author:
sip
Message:

Fixed crash on free string.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • app_rtsp/app_rtsp.c

    r170 r171  
    10051005        char *session; 
    10061006        char *range; 
     1007        char *j; 
    10071008 
    10081009        struct SDPContent* sdp = NULL; 
     
    13391340                                                duration = -1; 
    13401341                                        } else { 
     1342                                                /* Get end part */ 
     1343                                                j = strchr(range,'-'); 
    13411344                                                /* Check format */ 
    1342                                                 if (range=strchr(range,'-'))  
     1345                                                if (j) 
    13431346                                                        /* Get duration */ 
    1344                                                         duration = atof(range+1)*1000;   
     1347                                                        duration = atof(j+1)*1000;   
    13451348                                                else  
    13461349                                                        /* No end of stream */ 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software