diff freeDiameter/p_ce.c @ 62:a57a7133fe89

Dispose sent CEA
author Sebastien Decugis <sdecugis@nict.go.jp>
date Mon, 30 Nov 2009 15:43:06 +0900
parents 299507847ef9
children 56dd4efdf6e8
line wrap: on
line diff
--- a/freeDiameter/p_ce.c	Mon Nov 30 15:42:52 2009 +0900
+++ b/freeDiameter/p_ce.c	Mon Nov 30 15:43:06 2009 +0900
@@ -658,6 +658,10 @@
 	/* Save info from the CEA into the peer */
 	CHECK_FCT_DO( save_remote_CE_info(*msg, peer, &ec), goto cleanup );
 	
+	/* Dispose of the message, we don't need it anymore */
+	CHECK_FCT( fd_msg_free(*msg), /* continue */ );
+	*msg = NULL;
+	
 	/* Handshake if needed, start clear otherwise */
 	if ( ! fd_cnx_getTLS(peer->p_cnxctx) ) {
 		int todo = peer->p_hdr.info.config.pic_flags.sec & peer->p_hdr.info.runtime.pir_isi ;
"Welcome to our mercurial repository"