net-misc/openssh: Add a workaround to HPN for the OSX threading implemntation
authorPatrick McLean <chutzpah@gentoo.org>
Wed, 7 Sep 2016 04:54:04 +0000 (21:54 -0700)
committerPatrick McLean <chutzpah@gentoo.org>
Wed, 7 Sep 2016 04:54:23 +0000 (21:54 -0700)
commitfdc9882838209d6a427031ad87a79fa18a443851
tree0bee96cb43d461bbae86801d6904a98172aaf09e
parent5ac28ca2b70a3757ee47b0beb3f4bbf5660a493e
net-misc/openssh: Add a workaround to HPN for the OSX threading implemntation

The MT AES-CTR has a section of code that compares the currently running thread's
thread id with the first thread created. It seems on OSX, the first thread will
sometimes run before the thread ID is filled in (hence is zero), so this test
will fail, and the initialization code does not get run. This makes the test
also check if the thread ID of the first thread is 0, and run the initialization
code in that case as well.

Package-Manager: portage-2.3.0
net-misc/openssh/files/openssh-7.3_p1-hpn-update.patch