[Midnightbsd-cvs] src: yarrow.c: Fix a data reply attack

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Nov 29 12:27:11 EST 2007


Log Message:
-----------
Fix a data reply attack

Modified Files:
--------------
    src/sys/dev/random:
        yarrow.c (r1.3 -> r1.4)

-------------- next part --------------
Index: yarrow.c
===================================================================
RCS file: /home/cvs/src/sys/dev/random/yarrow.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -L sys/dev/random/yarrow.c -L sys/dev/random/yarrow.c -u -r1.3 -r1.4
--- sys/dev/random/yarrow.c
+++ sys/dev/random/yarrow.c
@@ -296,6 +296,7 @@
 				random_state.outputblocks = 0;
 			}
 			retval += (int)tomove;
+			cur = 0;
 		}
 	}
 	else {


More information about the Midnightbsd-cvs mailing list