X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/ef13e9a46baaa347014ac236f36a2536f055b108..80be023065ced106a4078a36371c135a60d2bd6c:/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; }