assigning proofs
authorMaximilian Szengel <gnunet@maxsz.de>
Mon, 4 Jun 2012 13:59:28 +0000 (13:59 +0000)
committerMaximilian Szengel <gnunet@maxsz.de>
Mon, 4 Jun 2012 13:59:28 +0000 (13:59 +0000)
src/regex/regex.c

index c1f2801c608fb78fb02e39618973e7e141f2e950..551610baab8ab4a0096f417b81784a738d2fd65a 100644 (file)
@@ -917,6 +917,13 @@ automaton_create_proofs (struct GNUNET_REGEX_Automaton *a)
     }
   }
 
+  // assign proofs
+  for (i = 0; i < n; i++)
+  {
+    states[i]->proof = GNUNET_strdup (R_last[a->start->marked][i]);
+  }
+
+  // cleanup
   for (i = 0; i < n; i++)
   {
     for (j = 0; j < n; j++)