chiark / gitweb /
server/keyexch.c: Pass correct peer pointer when reporting group mismatch.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 23 Apr 2017 03:06:07 +0000 (04:06 +0100)
server/keyexch.c

index 2502fa3..8cc4ad6 100644 (file)
@@ -1480,7 +1480,7 @@ int kx_init(keyexch *kx, peer *p, keyset **ks, unsigned f)
   if ((kx->kpriv = km_findpriv(p_privtag(p))) == 0) goto fail_0;
   if ((kx->kpub = km_findpub(p_tag(p))) == 0) goto fail_1;
   if (!group_samep(kx->kpriv->g, kx->kpub->g)) {
-    a_warn("KX", "?PEER", kx->p, "group-mismatch",
+    a_warn("KX", "?PEER", p, "group-mismatch",
           "local-private-key", "%s", p_privtag(p),
           "peer-public-key", "%s", p_tag(p),
           A_END);