~ubuntu-branches/ubuntu/quantal/tor/quantal

« back to all changes in this revision

Viewing changes to src/tools/tor-gencert.c

  • Committer: Package Import Robot
  • Author(s): Peter Palfrader
  • Date: 2012-08-07 23:13:18 UTC
  • mfrom: (22.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120807231318-9suzjzhez9xj8arz
Tags: 0.2.3.20-rc-1
* New upstream version, including a couple security fixes:
  - Avoid read-from-freed-memory and double-free bugs that could occur
    when a DNS request fails while launching it. Fixes bug 6480.
  - Avoid an uninitialized memory read when reading a vote or consensus
    document that has an unrecognized flavor name. This read could
    lead to a remote crash bug. Fixes bug 6530.
  - Try to leak less information about what relays a client is
    choosing to a side-channel attacker.
* Suggest the tor-arm controller.
* Improve long descriptions with Roger's help.
* Use https:// instead of git:// for the Vcs-Git URL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
497
497
    return 1;
498
498
  }
499
499
 
500
 
  fputs(buf, f);
 
500
  if (fputs(buf, f) < 0) {
 
501
    log_err(LD_GENERAL, "Couldn't write to %s: %s",
 
502
            certificate_file, strerror(errno));
 
503
    fclose(f);
 
504
    return 1;
 
505
  }
501
506
  fclose(f);
502
507
  return 0;
503
508
}