X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/ef13e9a46baaa347014ac236f36a2536f055b108..02dfbd5b7af7816959dbd39c1fe628451204e35f:/key-pack.c diff --git a/key-pack.c b/key-pack.c index 0303dbc..fed144a 100644 --- a/key-pack.c +++ b/key-pack.c @@ -138,7 +138,7 @@ int key_unpack(key_packdef *kp, key_data *kd, dstr *d) /* --- Ensure that the key has the right type --- */ if ((kd->e & KF_ENCMASK) != e) { - err = KERR_BADTYPE; + err = KERR_WRONGTYPE; goto fail; }