From b5463682072e6f45bf436ea8cd012eb5c6cc0f63 Mon Sep 17 00:00:00 2001 From: hev Date: Tue, 9 Apr 2024 22:55:41 +0800 Subject: [PATCH] HevSocketFactory: Fix typo. --- src/hev-socket-factory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hev-socket-factory.c b/src/hev-socket-factory.c index 880055581..f3f33185d 100644 --- a/src/hev-socket-factory.c +++ b/src/hev-socket-factory.c @@ -84,7 +84,7 @@ hev_socket_factory_get (HevSocketFactory *self) } res = setsockopt (fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof (one)); - if (fd < 0) { + if (res < 0) { LOG_E ("socket factory reuse"); goto exit_close; }