mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
libressl: fix certhash/hashinfo_compare.
This commit is contained in:
parent
86065ab2d7
commit
48e9e4c4e0
2 changed files with 15 additions and 1 deletions
14
srcpkgs/libressl/patches/certhash-compare.patch
Normal file
14
srcpkgs/libressl/patches/certhash-compare.patch
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
subtraction is not comparison
|
||||||
|
http://www.tedunangst.com/flak/post/subtraction-is-not-comparison
|
||||||
|
|
||||||
|
--- apps/certhash.c 2015-02-27 16:11:46.000000000 +0100
|
||||||
|
+++ apps/certhash.c 2015-03-05 13:45:15.832647817 +0100
|
||||||
|
@@ -121,7 +121,7 @@
|
||||||
|
struct hashinfo *hib = *(struct hashinfo **)b;
|
||||||
|
int rv;
|
||||||
|
|
||||||
|
- rv = hia->hash - hib->hash;
|
||||||
|
+ rv = hia->hash < hib->hash ? -1 : hia->hash > hib->hash;
|
||||||
|
if (rv != 0)
|
||||||
|
return (rv);
|
||||||
|
rv = memcmp(hia->fingerprint, hib->fingerprint,
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libressl'
|
# Template file for 'libressl'
|
||||||
pkgname=libressl
|
pkgname=libressl
|
||||||
version=2.1.4
|
version=2.1.4
|
||||||
revision=1
|
revision=2
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-libtls"
|
configure_args="--enable-libtls"
|
||||||
|
|
Loading…
Add table
Reference in a new issue