simon-git: putty (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sat Oct 24 16:48:33 BST 2015


TL;DR:
  758ac4c Initialise the random state in ssh_test_for_upstream().

Repository:     git://git.tartarus.org/simon/putty.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2015-10-24 16:48:33

commit 758ac4c206e35872a9c520356494f0f6c7477831
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=758ac4c206e35872a9c520356494f0f6c7477831;hp=48eafd66aa274c32fc8169a0d36619663905c210
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Oct 24 16:44:37 2015 +0100

    Initialise the random state in ssh_test_for_upstream().
    
    This protects the Unix platform sharing code in the case where no salt
    file exists yet in the connection-sharing directory, in which case
    make_dirname() will want to create one by using some random bytes, and
    prior to this commit, would fail an assertion because the random
    number generator wasn't set up.
    
    It would be neater to just return FALSE from ssh_test_for_upstream in
    that situation - if there's no salt file, then no sharing socket can
    be valid anyway - but that would involve doing more violence to the
    code structure than I'm currently prepared to do for a minor elegance
    gain.

 ssh.c |    2 ++
 1 file changed, 2 insertions(+)



More information about the tartarus-commits mailing list