]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Ensure input read using systemd-ask-password is null terminated
authorSelva Nair <selva.nair@gmail.com>
Thu, 14 Apr 2016 03:53:33 +0000 (23:53 -0400)
committerGert Doering <gert@greenie.muc.de>
Thu, 14 Apr 2016 20:07:26 +0000 (22:07 +0200)
commitd09fbf958f1c0b15372b3e87d784ae666b91a96b
tree8231bffd94cfaead34b8ae9fed5a6a3737499b8d
parent7a7a79f62eb04b0089ae304d558f15c5532c0e61
Ensure input read using systemd-ask-password is null terminated

Also properly check the return value of read() and leave room
for termination.
Fixes junk data occasionally seen in strings read through systemd.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1460606013-4983-1-git-send-email-selva.nair@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11437
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/console.c