summaryrefslogtreecommitdiff
path: root/tests/x509self.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/x509self.c')
-rw-r--r--tests/x509self.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/x509self.c b/tests/x509self.c
index 859a0b1c29..14b6f3bf92 100644
--- a/tests/x509self.c
+++ b/tests/x509self.c
@@ -351,7 +351,7 @@ server_start (void)
/* Socket operations
*/
listen_sd = socket (AF_INET, SOCK_STREAM, 0);
- if (err == -1)
+ if (listen_sd == -1)
{
perror ("socket");
fail ("server: socket failed\n");