Do not forget to increment the pointers...
diff --git a/crypto/rand/rand_vms.c b/crypto/rand/rand_vms.c
index 3162cdb..29b2d7a 100644
--- a/crypto/rand/rand_vms.c
+++ b/crypto/rand/rand_vms.c
@@ -108,6 +108,8 @@
 		pitem->buffer = (long *)data_buffer[total_length];
 		pitem->retlen = 0;
 		total_length += pitems_data->length;
+		pitems_data++;
+		pitem++;
 		}
 	pitem->length = pitem->code = 0;