diff libfdcore/messages.c @ 924:877592751fee

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
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 14 Feb 2013 17:52:57 +0100
parents 0a46772fad5d
children 5053f1abcf5d
line wrap: on
line diff
--- a/libfdcore/messages.c	Thu Feb 14 15:58:55 2013 +0100
+++ b/libfdcore/messages.c	Thu Feb 14 17:52:57 2013 +0100
@@ -158,6 +158,9 @@
 	/* Add it to the message */
 	CHECK_FCT( fd_msg_avp_add( msg, MSG_BRW_FIRST_CHILD, avp ) );
 	
+	/* Save the session associated with the message */
+	CHECK_FCT( fd_msg_sess_set( msg, sess) );
+	
 	/* Done! */
 	return 0;
 }
"Welcome to our mercurial repository"