Navigation


Changeset 924:877592751fee in freeDiameter for libfdproto/messages.c


Ignore:
Timestamp:
Feb 15, 2013, 1:52:57 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Children:
925:e5a09fab5ef3, 950:51c15f98a965
Phase:
public
Message:

Fix (tentative) for invalid handling of sessions fast creation/destruction as pointed by Yusuke Okura -- http://lists.freediameter.net/pipermail/help/2013-February/000584.html and http://lists.freediameter.net/pipermail/help/2013-February/000589.html -- Thank you very much

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/messages.c

    r920 r924  
    12161216}
    12171217
     1218/* Associate a session with a message, use only when the session was just created */
     1219int fd_msg_sess_set(struct msg * msg, struct session * session)
     1220{
     1221        TRACE_ENTRY("%p %p", msg, session);
     1222       
     1223        /* Check we received valid parameters */
     1224        CHECK_PARAMS( CHECK_MSG(msg) );
     1225        CHECK_PARAMS( session );
     1226        CHECK_PARAMS( msg->msg_sess == NULL );
     1227       
     1228        msg->msg_sess = session;
     1229        return 0;
     1230}
     1231
    12181232
    12191233/* Retrieve the session of the message */
Note: See TracChangeset for help on using the changeset viewer.