Add crypt_keyslot_area() API call.
[platform/upstream/cryptsetup.git] / lib / libdevmapper.c
index 6288b34..f711392 100644 (file)
@@ -1125,7 +1125,6 @@ int dm_resume_and_reinstate_key(struct crypt_device *cd, const char *name,
                goto out;
        }
 
-       memset(msg, 0, msg_size);
        strcpy(msg, "key set ");
        hex_key(&msg[8], key_size, key);