summaryrefslogtreecommitdiffstats
path: root/benchmarks/siege/files
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2004-09-13 17:47:20 +0000
committerclement <clement@FreeBSD.org>2004-09-13 17:47:20 +0000
commitd1eefff9972e4404266373e52db653b95c695e51 (patch)
tree94a7745a01d2582e4746f9a969ade3e75b21a338 /benchmarks/siege/files
parent5e663f3c6246e120d211514ea4178a188978684d (diff)
downloadFreeBSD-ports-d1eefff9972e4404266373e52db653b95c695e51.zip
FreeBSD-ports-d1eefff9972e4404266373e52db653b95c695e51.tar.gz
- use getnodeipbyname() instead of unsafe gethostbyname() to prevent
siege from crashing Submitted by: dwhite Approved by: portmgr (linimon)
Diffstat (limited to 'benchmarks/siege/files')
-rw-r--r--benchmarks/siege/files/patch-src::sock.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/benchmarks/siege/files/patch-src::sock.c b/benchmarks/siege/files/patch-src::sock.c
new file mode 100644
index 0000000..2282e63
--- /dev/null
+++ b/benchmarks/siege/files/patch-src::sock.c
@@ -0,0 +1,12 @@
+--- src/sock.c.ORIG Sun Aug 29 13:39:37 2004
++++ src/sock.c Sun Aug 29 13:38:01 2004
+@@ -132,7 +132,7 @@
+ if((gethostbyname_r( hn, &hent, hbf, sizeof(hbf), &hp, &herrno ) < 0)){
+ hp = NULL;
+ }
+-#elif defined(sun)
++#elif defined(sun) || defined(__FreeBSD__)
+ # ifdef HAVE_GETIPNODEBYNAME
+ hp = getipnodebyname( hn, AF_INET, 0, &herrno );
+ # else /* default use gethostbyname_r*/
+
OpenPOWER on IntegriCloud