]> err.no Git - varnish/commitdiff
Get sense of boolean test right way in second try
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 16 Sep 2008 19:32:01 +0000 (19:32 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 16 Sep 2008 19:32:01 +0000 (19:32 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3195 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vrt.c

index 532c733be52779620f2b8464cf21485d307bfc5c..c1e9222474aed39e9c481ea992fdbe3e40b6e78c 100644 (file)
@@ -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);