aports/main/libasr/0001-Fix-NETDB_SUCCESS-value.patch
xentec d3a7437a76 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
2017-02-13 18:28:14 +01:00

26 lines
602 B
Diff

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