From 40fae637216f115447db344824d6db30778d51fe Mon Sep 17 00:00:00 2001 From: Karunakaran A <48997923+karuna2git@users.noreply.github.com> Date: Wed, 20 Nov 2024 09:07:06 -0500 Subject: [PATCH] Update rtrouteBase.c --- src/rtmessage/rtrouteBase.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rtmessage/rtrouteBase.c b/src/rtmessage/rtrouteBase.c index d8a97a3d..29df1be8 100644 --- a/src/rtmessage/rtrouteBase.c +++ b/src/rtmessage/rtrouteBase.c @@ -63,6 +63,7 @@ rtRouteBase_BindListener(char const* socket_name, int no_delay, int indefinite_r listener = (rtListener *)rt_malloc(sizeof(rtListener)); if (!listener) return rtErrorFromErrno(ENOMEM); + listener->fd = -1; memset(&listener->local_endpoint, 0, sizeof(struct sockaddr_storage));