/[pkg-mixmaster]/trunk/Mix/Src/chain.c
ViewVC logotype

Diff of /trunk/Mix/Src/chain.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 521 by weaselp, Thu May 22 14:35:47 2003 UTC revision 522 by weaselp, Thu May 22 14:44:55 2003 UTC
# Line 6  Line 6 
6     details.     details.
7    
8     Prepare messages for remailer chain     Prepare messages for remailer chain
9     $Id: chain.c,v 1.14 2003/05/22 14:35:47 weaselp Exp $ */     $Id: chain.c,v 1.15 2003/05/22 14:44:55 weaselp Exp $ */
10    
11    
12  #include "mix3.h"  #include "mix3.h"
# Line 86  void parse_badchains(int badchains[MAXRE Line 86  void parse_badchains(int badchains[MAXRE
86        badchains[lefti][righti] = 1;        badchains[lefti][righti] = 1;
87      }      }
88      fclose(list);      fclose(list);
89    }      /* If some broken chain includes all remailers (*) mark it broken for
90    /* If some broken chain includes all remailers (*) mark it broken for       * every single remailer - this simplifies handling in other places */
91     * every single remailer - this simplifies handling in other places */      for (i=1; i < maxrem; i++ ) {
92    for (i=1; i < maxrem; i++ ) {        if (badchains[0][i])
93      if (badchains[0][i])          for (j=1; j < maxrem; j++ )
94        for (j=1; j < maxrem; j++ )            badchains[j][i] = 1;
95          badchains[j][i] = 1;        if (badchains[i][0])
96      if (badchains[i][0])          for (j=1; j < maxrem; j++ )
97        for (j=1; j < maxrem; j++ )            badchains[i][j] = 1;
98          badchains[i][j] = 1;      }
99    }    }
100  }  }
101    

Legend:
Removed from v.521  
changed lines
  Added in v.522

  ViewVC Help
Powered by ViewVC 1.1.5