Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-04-11 03:25:32 UTC
Modified files:
Tag: u2_10_12_branch
ircd/ircd_parser.y ChangeLog
Log message:
Correctly free members of the iauth string list.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.178 ircu2.10/ChangeLog:1.710.2.179
--- ircu2.10/ChangeLog:1.710.2.178 Tue Apr 10 07:53:03 2007
+++ ircu2.10/ChangeLog Tue Apr 10 20:25:21 2007
@@ -1,3 +1,8 @@
+2007-04-10 Michael Poole <[EMAIL PROTECTED]>
+
+ * ircd/ircd_parser.y (iauth): Avoid problems related to MyFree's
+ multiple evaluation of its argument.
+
2007-04-10 Kevin L. Mitchell <[EMAIL PROTECTED]>
* ircd/m_gline.c (ms_gline): lastmod must be non-zero
Index: ircu2.10/ircd/ircd_parser.y
diff -u ircu2.10/ircd/ircd_parser.y:1.56.2.13
ircu2.10/ircd/ircd_parser.y:1.56.2.14
--- ircu2.10/ircd/ircd_parser.y:1.56.2.13 Mon Mar 26 18:08:22 2007
+++ ircu2.10/ircd/ircd_parser.y Tue Apr 10 20:25:21 2007
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
- * $Id: ircd_parser.y,v 1.56.2.13 2007/03/27 01:08:22 entrope Exp $
+ * $Id: ircd_parser.y,v 1.56.2.14 2007/04/11 03:25:21 entrope Exp $
*/
%{
@@ -1139,7 +1139,10 @@
{
auth_spawn(stringno, stringlist);
while (stringno > 0)
- MyFree(stringlist[--stringno]);
+ {
+ --stringno;
+ MyFree(stringlist[stringno]);
+ }
};
iauthitems: iauthitem iauthitems | iauthitem;
@@ -1147,5 +1150,8 @@
iauthprogram: PROGRAM '='
{
while (stringno > 0)
- MyFree(stringlist[--stringno]);
+ {
+ --stringno;
+ MyFree(stringlist[stringno]);
+ }
} stringlist ';';
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches