]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-login-shell: correctly calculate string length
authorJán Tomko <jtomko@redhat.com>
Sun, 2 Aug 2020 12:58:38 +0000 (14:58 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 3 Aug 2020 13:37:35 +0000 (15:37 +0200)
commitd339113ab050107fcc4e2a3e9ab939cd92352efe
tree1ab3d777e101ffbc920829a584baed380eaccefe
parent24b2f96a4150bc520a0113766d48a709e0df356a
virt-login-shell: correctly calculate string length

virLoginShellGetShellArgv was not dereferencing the pointer
to the string list containing the shell parameters from the
config file, thus setting some random number as shargvlen.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 740e4d705284ba0598258291c2656f50075486f0
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
tools/virt-login-shell-helper.c