diff options
author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2022-06-20 23:32:52 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-06-21 23:50:14 +0000 |
commit | 8e3d94c867741319bf75b47266176cf677218641 (patch) | |
tree | 76cc85fc142bbce0759e14b3c7302485cfbf8a99 | |
parent | 5cb3b8809b9f141a2cf8a4e00a8387c75dc6bc10 (diff) |
Correct fsCreateACReq length
Regressed-in: 6972ea08ee5b2ef1cfbdc2fcaf14f06bbd391561
Fixes: https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues/13
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-rw-r--r-- | src/fc/fserve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fc/fserve.c b/src/fc/fserve.c index 94604d7..c676234 100644 --- a/src/fc/fserve.c +++ b/src/fc/fserve.c @@ -2857,7 +2857,7 @@ _fs_client_access (FSFpePtr conn, pointer client, Bool sync) authorizations = padding; authlen = 4; } - crac.length = (sizeof (fsCreateACReq) + authlen) >> 2; + crac.length = (sizeof (fsCreateACReq) + authlen + 3) >> 2; crac.acid = cur->acid; _fs_add_req_log(conn, FS_CreateAC); _fs_write(conn, (char *) &crac, sizeof (fsCreateACReq)); |