From de168f632bf9e51f3b765f6ebf972ee1d5e54a7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Fri, 31 Oct 2008 16:36:11 +0000 Subject: [PATCH] No destroy of the external socket on subsequent edg_wll_NotifBind() calls. --- org.glite.lb.client/src/notification.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/org.glite.lb.client/src/notification.c b/org.glite.lb.client/src/notification.c index 14dd73b..32fac6f 100644 --- a/org.glite.lb.client/src/notification.c +++ b/org.glite.lb.client/src/notification.c @@ -195,11 +195,8 @@ static int get_client_address( goto err; // else: resue socket } - else - // used supplied socket - ctx->notifSock = fd; - if (getsockname(ctx->notifSock,(struct sockaddr *) &a, &alen)) + if (getsockname(fd == -1 ? ctx->notifSock : fd,(struct sockaddr *) &a, &alen)) return edg_wll_SetError(ctx, errno, "getsockname() failed"); if (a.sin_addr.s_addr == INADDR_ANY) -- 1.8.2.3