Changeset 2435


Ignore:
Timestamp:
Jan 29, 2009 7:13:55 PM (11 years ago)
Author:
bennylp
Message:

Candidate fix for ticket #713: Assertion in ../src/pjsip/sip_util.c:729: pjsip_process_route_set() (thanks Ramesh D for the report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_util.c

    r2421 r2435  
    860860    PJ_ASSERT_RETURN(dest_info != NULL, PJ_EINVAL); 
    861861 
    862     /* Assert if the request contains strict route and strict 
    863      * route processing has been applied before. We need to 
    864      * restore the strict route with pjsip_restore_strict_route_set() 
    865      * before we can call this function again, otherwise strict 
    866      * route will be swapped twice! 
     862    /* If the request contains strict route, check that the strict route 
     863     * has been restored to its original values before processing the 
     864     * route set. The strict route is restored to the original values 
     865     * with pjsip_restore_strict_route_set(). If caller did not restore 
     866     * the strict route before calling this function, we need to call it 
     867     * here, or otherwise the strict-route and Request-URI will be swapped 
     868     * twice! 
    867869     */ 
     870    if (tdata->saved_strict_route != NULL) { 
     871        pjsip_restore_strict_route_set(tdata); 
     872    } 
    868873    PJ_ASSERT_RETURN(tdata->saved_strict_route==NULL, PJ_EBUG); 
    869874 
Note: See TracChangeset for help on using the changeset viewer.