fixed chunk_increment, fixes reuse of already assigned addresses
authorMartin Willi <martin@strongswan.org>
Mon, 30 Jun 2008 12:33:38 +0000 (12:33 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 30 Jun 2008 12:33:38 +0000 (12:33 -0000)
src/charon/plugins/sql/sql_attribute.c

index 45c0750..15a8869 100644 (file)
@@ -66,7 +66,7 @@ static void increment_chunk(chunk_t chunk)
 {
        int i;
        
-       for (i = chunk.len - 1; i >= 0; i++)
+       for (i = chunk.len - 1; i >= 0; i--)
        {
                if (++chunk.ptr[i] != 0)
                {