]> err.no Git - varnish/commitdiff
Assert that realloc() did.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Dec 2008 18:34:02 +0000 (18:34 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Dec 2008 18:34:02 +0000 (18:34 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3490 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_param.c

index 9c9febd25dee396bcb3e538e1b63fd103430c210..6b6bc41f3efb8e213c2aaa2d19a9ffc4435914dc 100644 (file)
@@ -908,6 +908,7 @@ MCF_AddParams(const struct parspec *ps)
                n++;
        }
        parspec = realloc(parspec, (nparspec + n + 1) * sizeof *parspec);
+       XXXAN(parspec);
        for (pp = ps; pp->name != NULL; pp++)
                parspec[nparspec++] = pp;
        parspec[nparspec] = NULL;