diff options
author | Babak Farrokhi <farrokhi@FreeBSD.org> | 2018-07-08 11:15:51 +0000 |
---|---|---|
committer | Babak Farrokhi <farrokhi@FreeBSD.org> | 2018-07-08 11:15:51 +0000 |
commit | 088d12a740e4138489b143ec623d12c2240a86e8 (patch) | |
tree | cc1f1230bcba410e8a0b14d5862e0da2977515c0 /benchmarks/sipp | |
parent | - Update to 3.2.7 (diff) |
benchmarks/sipp:
PR: 222764
Submitted by: szabig <szabig@kgb.hu>
Reported by: OlivierW <olivierw1+bugzilla-freebsd@hotmail.com>
Notes
Notes:
svn path=/head/; revision=474174
Diffstat (limited to 'benchmarks/sipp')
-rw-r--r-- | benchmarks/sipp/Makefile | 2 | ||||
-rw-r--r-- | benchmarks/sipp/files/patch-src_socket.cpp | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/benchmarks/sipp/Makefile b/benchmarks/sipp/Makefile index 78a84e8947ff..cfb1ae076b82 100644 --- a/benchmarks/sipp/Makefile +++ b/benchmarks/sipp/Makefile @@ -3,7 +3,7 @@ PORTNAME= sipp PORTVERSION= 3.5.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= benchmarks net MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${PORTVERSION}/ diff --git a/benchmarks/sipp/files/patch-src_socket.cpp b/benchmarks/sipp/files/patch-src_socket.cpp new file mode 100644 index 000000000000..c740d8e3cb03 --- /dev/null +++ b/benchmarks/sipp/files/patch-src_socket.cpp @@ -0,0 +1,11 @@ +--- src/socket.cpp.orig 2018-07-08 10:42:40 UTC ++++ src/socket.cpp +@@ -338,7 +338,7 @@ const char *sip_tls_error_string(SSL *ss + + static char* get_inet_address(const struct sockaddr_storage* addr, char* dst, int len) + { +- if (getnameinfo(_RCAST(struct sockaddr*, addr), sizeof(*addr), ++ if (getnameinfo(_RCAST(struct sockaddr*, addr), SOCK_ADDR_SIZE(addr), + dst, len, NULL, 0, NI_NUMERICHOST) != 0) { + snprintf(dst, len, "addr not supported"); + } |