logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

tor-0.3.2.9-fix redefinition of unsigned u.patch (598B)


  1. diff --git a/src/or/channeltls.c b/src/or/channeltls.c
  2. index 8277813..900bff9 100644
  3. --- a/src/or/channeltls.c
  4. +++ b/src/or/channeltls.c
  5. @@ -2156,10 +2156,11 @@ channel_tls_process_certs_cell(var_cell_t *cell, channel_tls_t *chan)
  6. }
  7. err:
  8. - for (unsigned u = 0; u < ARRAY_LENGTH(x509_certs); ++u) {
  9. + unsigned u = 0;
  10. + for (u = 0; u < ARRAY_LENGTH(x509_certs); ++u) {
  11. tor_x509_cert_free(x509_certs[u]);
  12. }
  13. - for (unsigned u = 0; u < ARRAY_LENGTH(ed_certs); ++u) {
  14. + for (u = 0; u < ARRAY_LENGTH(ed_certs); ++u) {
  15. tor_cert_free(ed_certs[u]);
  16. }
  17. tor_free(rsa_ed_cc_cert);