Navigation


Changeset 385:69057a6d68ec in freeDiameter


Ignore:
Timestamp:
Jul 5, 2010, 6:45:07 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix a possible race condition

Location:
extensions/app_radgw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgw_worker.c

    r356 r385  
    292292        }
    293293       
    294         /* Now try and send the RADIUS answer */
    295         if (rad_ans) {
    296                 CHECK_FCT_DO( rgw_client_finish_send(&rad_ans, pa->rad, pa->cli), goto out);   
    297         }
    298 
    299 out:
     294       
    300295        if (!keepsession) {
    301296                /* Destroy remaining session data (stateless gateway) */
     
    303298        }
    304299       
     300        /* Now try and send the RADIUS answer */
     301        if (rad_ans) {
     302                CHECK_FCT_DO( rgw_client_finish_send(&rad_ans, pa->rad, pa->cli), );   
     303        }
     304
     305out:
    305306        /* Clear the Diameter message */
    306307        if (*ans) {
  • extensions/app_radgw/rgwx_auth.c

    r384 r385  
    10521052
    10531053        /* Store the request identifier in the session (if provided) */
    1054         if (session) {
     1054        if (*session) {
    10551055                unsigned char * req_auth;
    10561056                CHECK_MALLOC(req_auth = malloc(16));
Note: See TracChangeset for help on using the changeset viewer.