[openssh-commits] [openssh] 04/04: compile on systems without TCP_MD5SIG (e.g. OSX)

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Jan 27 23:08:12 AEDT 2015


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 69ff64f69615c2a21c97cb5878a0996c21423257
Author: Damien Miller <djm at mindrot.org>
Date:   Tue Jan 27 23:07:43 2015 +1100

    compile on systems without TCP_MD5SIG (e.g. OSX)
---
 regress/netcat.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/regress/netcat.c b/regress/netcat.c
index bffaade..84efe11 100644
--- a/regress/netcat.c
+++ b/regress/netcat.c
@@ -1144,11 +1144,13 @@ set_common_sockopts(int s)
 {
 	int x = 1;
 
+#ifdef TCP_MD5SIG
 	if (Sflag) {
 		if (setsockopt(s, IPPROTO_TCP, TCP_MD5SIG,
 			&x, sizeof(x)) == -1)
 			err(1, NULL);
 	}
+#endif
 	if (Dflag) {
 		if (setsockopt(s, SOL_SOCKET, SO_DEBUG,
 			&x, sizeof(x)) == -1)

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list