diff --git a/x86/arcfour-crypt.asm b/x86/arcfour-crypt.asm
index d35a1daa0cca5c76bafc7ca8b2bb273131293793..007315aefe62dac3428cd18dfe48f21028ffdf37 100644
--- a/x86/arcfour-crypt.asm
+++ b/x86/arcfour-crypt.asm
@@ -65,6 +65,9 @@ nettle_arcfour_crypt:
 	incl    %edi
 	cmpl	%esi, %edx
 	jne	.Lloop
+
+	movb	%al, 256(%ebp)		C  Store the new i and j.
+	movb	%bl, 257(%ebp)
 .Lend:
 	popl	%edi
 	popl	%esi