]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - security/keys/request_key_auth.c
KEYS: always initialize keyring_index_key::desc_len
[mirror_ubuntu-bionic-kernel.git] / security / keys / request_key_auth.c
index 424e1d90412ea0c40e4e20453f47b566b0b25834..6797843154f037b491588fc7b981ba8f8cb02a22 100644 (file)
@@ -246,7 +246,7 @@ struct key *key_get_instantiation_authkey(key_serial_t target_id)
        struct key *authkey;
        key_ref_t authkey_ref;
 
-       sprintf(description, "%x", target_id);
+       ctx.index_key.desc_len = sprintf(description, "%x", target_id);
 
        authkey_ref = search_process_keyrings(&ctx);