[libss7-commits] mattf: trunk r74 - /trunk/mtp2.c

libss7-commits at lists.digium.com libss7-commits at lists.digium.com
Tue Dec 26 10:30:00 MST 2006


Author: mattf
Date: Tue Dec 26 11:29:59 2006
New Revision: 74

URL: http://svn.digium.com/view/libss7?view=rev&rev=74
Log:
Fix bug in buffer flushing code.  Thanks Petr for pointing it out!

Modified:
    trunk/mtp2.c

Modified: trunk/mtp2.c
URL: http://svn.digium.com/view/libss7/trunk/mtp2.c?view=diff&rev=74&r1=73&r2=74
==============================================================================
--- trunk/mtp2.c (original)
+++ trunk/mtp2.c Tue Dec 26 11:29:59 2006
@@ -95,8 +95,8 @@
 
 	while (list) {
 		cur = list;
+		list = list->next;
 		free(cur);
-		list = list->next;
 	}
 
 	list = link->tx_q;
@@ -105,8 +105,8 @@
 
 	while (list) {
 		cur = list;
+		list = list->next;
 		free(cur);
-		list = list->next;
 	}
 
 	link->retransmit_pos = NULL;



More information about the libss7-commits mailing list