diff include/freeDiameter/libfdproto.h @ 1230:e72c9dad62ac

Fix issue with generating Failed-AVP when the error is DIAMETER_MISSING_AVP. Also fix a memory leak in that case
author Sebastien Decugis <sdecugis@freediameter.net>
date Sun, 21 Jul 2013 11:57:39 +0200
parents b1c4876b1896
children b255ba44f59c
line wrap: on
line diff
--- a/include/freeDiameter/libfdproto.h	Thu Jul 18 16:08:54 2013 +0200
+++ b/include/freeDiameter/libfdproto.h	Sun Jul 21 11:57:39 2013 +0200
@@ -2698,6 +2698,7 @@
 struct fd_pei {
 	char *		pei_errcode;	/* name of the error code to use */
 	struct avp *	pei_avp;	/* pointer to invalid (in original message) or missing AVP (to be freed) */
+	int		pei_avp_free;	/* Set to 1 if the pei_avp must be freed */
 	char *		pei_message;	/* Overwrite default message if needed */
 	int		pei_protoerr; 	/* do we set the 'E' bit in the error message ? */
 };
"Welcome to our mercurial repository"