[or-cvs] r9214: Fix flipped sign in compare: make descriptors buildable agai (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Fri Dec 29 16:31:56 UTC 2006


Author: nickm
Date: 2006-12-29 11:31:37 -0500 (Fri, 29 Dec 2006)
New Revision: 9214

Modified:
   tor/trunk/
   tor/trunk/src/or/router.c
Log:
 r11753 at Kushana:  nickm | 2006-12-29 11:30:28 -0500
 Fix flipped sign in compare: make descriptors buildable again.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r11753] on c95137ef-5f19-0410-b913-86e773d04f59

Modified: tor/trunk/src/or/router.c
===================================================================
--- tor/trunk/src/or/router.c	2006-12-29 14:08:06 UTC (rev 9213)
+++ tor/trunk/src/or/router.c	2006-12-29 16:31:37 UTC (rev 9214)
@@ -1205,7 +1205,7 @@
     if (result < 0)
       return -1;
     written += result;
-    if (written < maxlen+2)
+    if (written+2 > maxlen)
       return -1;
     s[written++] = '\n';
   }



More information about the tor-commits mailing list