chiark / gitweb /
server/keyset.c: Print correct key directions when tracing.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 2 Sep 2017 21:08:38 +0000 (22:08 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 14 Jun 2018 09:34:25 +0000 (10:34 +0100)
server/keyset.c

index a94132b364b39ba38f91a683e1695bffcc3e30fb..2f2b550a072d913f93dcd5d78a987490610778f3 100644 (file)
@@ -219,7 +219,7 @@ void ks_derivekey(octet *k, size_t ksz, const struct rawkey *rk,
   GH_DESTROY(h);
   IF_TRACING(T_KEYSET, { IF_TRACING(T_CRYPTO, {
     char _buf[32];
-    sprintf(_buf, "crypto: %s key %s", dir ? "incoming" : "outgoing", what);
+    sprintf(_buf, "crypto: %s key %s", dir ? "outgoing" : "incoming", what);
     trace_block(T_CRYPTO, _buf, k, ksz);
   }) })
 }