diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2018-05-06 15:18:43 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2018-05-06 15:18:43 +0000 |
commit | c51042fcac8fd17c4675613586607d526dc52e6b (patch) | |
tree | 1f67a815a74c0162c5b7182f39784c7967a1726e /app | |
parent | 37e94cdd723ca3c652ead2ad06557f23021b07ba (diff) |
Add missing brackets to multi-statement if in SaveServerAuthorizations
From Alan Coopersmith in xdm.
Diffstat (limited to 'app')
-rw-r--r-- | app/xenodm/xenodm/auth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/xenodm/xenodm/auth.c b/app/xenodm/xenodm/auth.c index d5740479f..8a6af1163 100644 --- a/app/xenodm/xenodm/auth.c +++ b/app/xenodm/xenodm/auth.c @@ -348,6 +348,7 @@ SaveServerAuthorizations ( * to the auth file so xrdb and setup programs don't fail. */ if (auths[i]->data_length > 0) + { if (!XauWriteAuth (auth_file, auths[i])) { Debug ("XauWriteAuth() failed\n"); @@ -358,6 +359,7 @@ SaveServerAuthorizations ( err = errno; ret = FALSE; } + } } /* * XXX: This is not elegant, but stdio has no truncation function. |