- fixed bug in nonce test
authorJan Hutter <jhutter@hsr.ch>
Thu, 17 Nov 2005 13:35:38 +0000 (13:35 -0000)
committerJan Hutter <jhutter@hsr.ch>
Thu, 17 Nov 2005 13:35:38 +0000 (13:35 -0000)
Source/charon/testcases/generator_test.c

index 9433238..9cedd9d 100644 (file)
@@ -764,7 +764,7 @@ void test_generator_with_nonce_payload(tester_t *tester)
        
        
        nonce.ptr = allocator_clone_bytes("1234567890123456", strlen("1234567890123456"));
        
        
        nonce.ptr = allocator_clone_bytes("1234567890123456", strlen("1234567890123456"));
-       nonce.len = strlen(nonce.ptr);
+       nonce.len = strlen("1234567890123456");
 
        nonce_payload->set_nonce(nonce_payload,nonce);
        
 
        nonce_payload->set_nonce(nonce_payload,nonce);