mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-24 07:20:52 +07:00
libkmod: modinfo: fix sig_id output
For some reason the key for sig_id was set to "signature". The length was calculated against the proper string, as the result in the output it was truncated to "signat". Pass the proper key to the kmod_module_info_append() call. Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
This commit is contained in:
parent
ef4257b59c
commit
30fb14f3c8
@ -2257,7 +2257,7 @@ KMOD_EXPORT int kmod_module_get_info(const struct kmod_module *mod, struct kmod_
|
||||
struct kmod_list *n;
|
||||
char *key_hex;
|
||||
|
||||
n = kmod_module_info_append(list, "signature", strlen("sig_id"),
|
||||
n = kmod_module_info_append(list, "sig_id", strlen("sig_id"),
|
||||
sig_info.id_type, strlen(sig_info.id_type));
|
||||
if (n == NULL)
|
||||
goto list_error;
|
||||
|
Loading…
Reference in New Issue
Block a user