diff options
author | xentec <xentec@aix0.eu> | 2017-02-11 15:00:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-02-13 18:28:14 +0100 |
commit | d3a7437a76d864f6aa585e6ae82789cd5455c04d (patch) | |
tree | 9bbee0eb0f8cd69fc196b66ddbb376331d440753 /main/libasr/0001-Fix-NETDB_SUCCESS-value.patch | |
parent | 0850971f05a1ea0ff352c1f83fa68d1b4055ea68 (diff) | |
download | aports-d3a7437a76d864f6aa585e6ae82789cd5455c04d.tar.bz2 aports-d3a7437a76d864f6aa585e6ae82789cd5455c04d.tar.xz |
main/libasr: replace res_randomid() impl. with call to arc4random() from libcrypto
Fixes recursive call loop which causes a stack overflow in opensmtpd.
ref #6578
Diffstat (limited to 'main/libasr/0001-Fix-NETDB_SUCCESS-value.patch')
-rw-r--r-- | main/libasr/0001-Fix-NETDB_SUCCESS-value.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/libasr/0001-Fix-NETDB_SUCCESS-value.patch b/main/libasr/0001-Fix-NETDB_SUCCESS-value.patch new file mode 100644 index 0000000000..34ae1807b0 --- /dev/null +++ b/main/libasr/0001-Fix-NETDB_SUCCESS-value.patch @@ -0,0 +1,25 @@ +From 37b6c29ad32692aa0fea5a65492ddbea0b4a8b5d Mon Sep 17 00:00:00 2001 +From: Jonathan Curran <jonathan@curran.in> +Date: Wed, 9 Sep 2015 17:11:55 +0000 +Subject: [PATCH 1/3] Fix NETDB_SUCCESS value + +--- + openbsd-compat/defines.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/openbsd-compat/defines.h b/openbsd-compat/defines.h +index da7a42c..9f50ece 100644 +--- a/openbsd-compat/defines.h ++++ b/openbsd-compat/defines.h +@@ -823,7 +823,7 @@ struct winsize { + #endif + + #ifndef NETDB_SUCCESS +-# define NETDB_SUCCESS -1 ++# define NETDB_SUCCESS 0 + #endif + + /* end of chl */ +-- +2.11.1 + |