From: phk Date: Tue, 16 Sep 2008 19:32:01 +0000 (+0000) Subject: Get sense of boolean test right way in second try X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d970f786080b294b83057917fce23bfecb13c6ca;p=varnish 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 --- 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);