From: František Dvořák Date: Fri, 31 Oct 2008 16:36:11 +0000 (+0000) Subject: No destroy of the external socket on subsequent edg_wll_NotifBind() calls. X-Git-Tag: test_tag~94 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=de168f632bf9e51f3b765f6ebf972ee1d5e54a7d;p=jra1mw.git No destroy of the external socket on subsequent edg_wll_NotifBind() calls. --- 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)