chiark / gitweb /
privcache: Pass a cloc to loadpriv and use it
[secnet.git] / privcache.c
index 0c10197d8fc0fc2694e002ae2ce0a40330240c62..81b04fcc65f456e3585001fd7425236b37d66ba5 100644 (file)
@@ -78,7 +78,8 @@ static struct sigprivkey_if *uncached_get(struct privcache *st,
         scheme++) {
        st->databuf.start=st->databuf.base;
        st->databuf.size=got;
-       ok=scheme->loadpriv(scheme, &st->databuf, &sigpriv, log);
+       struct cloc loc = { .file=st->path.buffer, .line=0 };
+       ok=scheme->loadpriv(scheme, &st->databuf, &sigpriv, log, loc);
        if (ok) {
            if (sigpriv->sethash) {
                if (!st->defhash) {