summaryrefslogtreecommitdiff
path: root/src/tty-ask-password-agent.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-11-01 14:20:31 +0100
committerLennart Poettering <lennart@poettering.net>2011-11-01 14:20:31 +0100
commitbb53abeb8c3407ea250be69bc43510b03c0df3da (patch)
tree841ff51d0d78c690a8d3dd2fe85cb48904f115c0 /src/tty-ask-password-agent.c
parentb7f44df59a7f76d2bd5302df2f5ec9be9b7fa2fa (diff)
plymouth: fix ply proto endianess issues
Plymouth enforces LE even for the local Ply proto, hence we should do the conversion properly for BE arch compat. Tracked down by Harald Hoyer. https://bugzilla.redhat.com/show_bug.cgi?id=744415
Diffstat (limited to 'src/tty-ask-password-agent.c')
-rw-r--r--src/tty-ask-password-agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c
index 43d008fc70..13481b29e9 100644
--- a/src/tty-ask-password-agent.c
+++ b/src/tty-ask-password-agent.c
@@ -206,6 +206,7 @@ static int ask_password_plymouth(
continue;
memcpy(&size, buffer+1, sizeof(size));
+ size = le32toh(size);
if (size+5 > sizeof(buffer)) {
r = -EIO;
goto finish;