Navigation


Changeset 340:81821e9f6988 in freeDiameter for freeDiameter/tests/testsess.c


Ignore:
Timestamp:
Jun 28, 2010, 11:20:48 AM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix issue on session cleanup callback parameters -- thanks Souheil for reporting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/tests/testsess.c

    r258 r340  
    4747};
    4848
    49 static void mycleanup( char * sid, struct mystate * data )
     49static void mycleanup( struct mystate * data, char * sid )
    5050{
    5151        /* sanity */
     
    268268                CHECK( NULL, tms );
    269269               
    270                 mycleanup(str1, ms[0]);
    271                 mycleanup(str1, ms[1]);
     270                mycleanup(ms[0], str1);
     271                mycleanup(ms[1], str1);
    272272               
    273273                /* Now create 6 states */
     
    350350                CHECK( 0, fd_sess_state_retrieve( hdl1, sess1, &tms ) );
    351351                CHECK( 0, fd_sess_getsid(sess1, &str1) );
    352                 mycleanup(str1, tms);
     352                mycleanup(tms, str1);
    353353        }
    354354       
Note: See TracChangeset for help on using the changeset viewer.