Commit 96431ea4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Unbreak the symbol-hack



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4261 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent a48f7a96
......@@ -418,7 +418,7 @@ Symbol_Lookup(struct vsb *vsb, void *ptr)
VTAILQ_FOREACH(s, &symbols, list) {
if (s->a > pp)
continue;
if (s0 == NULL || s->a < s0->a)
if (s0 == NULL || s->a > s0->a)
s0 = s;
}
if (s0 == NULL)
......@@ -439,7 +439,7 @@ Symbol_hack(const char *a0)
asprintf(&p, "nm -an %s", a0);
if (p == NULL)
return;
fi = popen(buf, "r");
fi = popen(p, "r");
free(p);
if (fi == NULL)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment