summaryrefslogtreecommitdiffstats
path: root/test/rctest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rctest.c')
-rw-r--r--test/rctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rctest.c b/test/rctest.c
index 2e366c72..2c69b5b2 100644
--- a/test/rctest.c
+++ b/test/rctest.c
@@ -270,7 +270,7 @@ static void do_listen(void (*handler)(int sk))
if (timestamp) {
int t = 1;
- if (setsockopt(sk, SOL_SOCKET, SO_TIMESTAMP, &t, sizeof(t)) < 0) {
+ if (setsockopt(nsk, SOL_SOCKET, SO_TIMESTAMP, &t, sizeof(t)) < 0) {
syslog(LOG_ERR, "Can't enable SO_TIMESTAMP: %s (%d)",
strerror(errno), errno);
goto error;