From d970f786080b294b83057917fce23bfecb13c6ca Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 16 Sep 2008 19:32:01 +0000 Subject: [PATCH] Get sense of boolean test right way in second try git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3195 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_vrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_vrt.c b/varnish-cache/bin/varnishd/cache_vrt.c index 532c733b..c1e92224 100644 --- a/varnish-cache/bin/varnishd/cache_vrt.c +++ b/varnish-cache/bin/varnishd/cache_vrt.c @@ -498,7 +498,7 @@ VRT_r_server_ip(struct sess *sp) { if (sp->mysockaddr->sa_family == AF_UNSPEC) - assert(getsockname(sp->fd, sp->mysockaddr, &sp->mysockaddrlen) + assert(!getsockname(sp->fd, sp->mysockaddr, &sp->mysockaddrlen) || errno == ECONNRESET); return (sp->mysockaddr); -- 2.39.5