summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2018-05-06 15:18:43 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:39 +0200
commitf91d35bd00fce407b04187cab082c19e499139d7 (patch)
treea558ee8dcd5b31c0d44ba48f84faf3819311d2ca
parent55543377fc4a53a1290078f8373dc2d5f0a19d07 (diff)
Add missing brackets to multi-statement if in SaveServerAuthorizations From Alan Coopersmith in xdm.
-rw-r--r--xenodm/auth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xenodm/auth.c b/xenodm/auth.c
index d574047..8a6af11 100644
--- a/xenodm/auth.c
+++ b/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.