]> err.no Git - varnish/commitdiff
Just in case.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 16 Sep 2006 11:34:25 +0000 (11:34 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 16 Sep 2006 11:34:25 +0000 (11:34 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1008 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_backend.c

index 674d11ed6f0e8e3d32befc9ed8f91d54763872f5..d4f769ac6a58e4a2de1559cac05b76199dd389f5 100644 (file)
@@ -62,8 +62,10 @@ vbe_lookup(struct backend *bp)
        struct addrinfo *res, hint;
        int error;
 
-       if (bp->addr != NULL)
+       if (bp->addr != NULL) {
                freeaddrinfo(bp->addr);
+               bp->addr = NULL;
+       }
 
        memset(&hint, 0, sizeof hint);
        hint.ai_family = PF_UNSPEC;