[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] bugfix in sort_version_list() so it doesn"t screw up the so...



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	routerparse.c 
Log Message:
bugfix in sort_version_list() so it doesn't screw up the sorting.


Index: routerparse.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerparse.c,v
retrieving revision 1.180
retrieving revision 1.181
diff -u -p -d -r1.180 -r1.181
--- routerparse.c	3 Apr 2006 06:23:24 -0000	1.180
+++ routerparse.c	3 Apr 2006 06:30:48 -0000	1.181
@@ -1942,7 +1942,7 @@ sort_version_list(smartlist_t *versions,
      * version */
     if (_compare_tor_version_str_ptr(a,b) == 0) {
       tor_free(smartlist_get(versions, i));
-      smartlist_del(versions, i--);
+      smartlist_del_keeporder(versions, i--);
     }
   }
 }