summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/netcat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regress/netcat.c b/regress/netcat.c
index bffaade58..84efe1182 100644
--- a/regress/netcat.c
+++ b/regress/netcat.c
@@ -1144,11 +1144,13 @@ set_common_sockopts(int s)
1144{ 1144{
1145 int x = 1; 1145 int x = 1;
1146 1146
1147#ifdef TCP_MD5SIG
1147 if (Sflag) { 1148 if (Sflag) {
1148 if (setsockopt(s, IPPROTO_TCP, TCP_MD5SIG, 1149 if (setsockopt(s, IPPROTO_TCP, TCP_MD5SIG,
1149 &x, sizeof(x)) == -1) 1150 &x, sizeof(x)) == -1)
1150 err(1, NULL); 1151 err(1, NULL);
1151 } 1152 }
1153#endif
1152 if (Dflag) { 1154 if (Dflag) {
1153 if (setsockopt(s, SOL_SOCKET, SO_DEBUG, 1155 if (setsockopt(s, SOL_SOCKET, SO_DEBUG,
1154 &x, sizeof(x)) == -1) 1156 &x, sizeof(x)) == -1)