diff options
author | John Levon <john.levon@joyent.com> | 2018-12-19 18:10:14 +0000 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-03-08 15:59:03 +0000 |
commit | bc54f855e0de1e590115101c80f152a20722cfb0 (patch) | |
tree | 27cff7229dcd40fe061477176fc30ca00a6656f7 /usr/src/cmd/cmd-inet/common/kcmd.c | |
parent | 8f5edf1f887948e6be5982cbe7f196909927af91 (diff) | |
download | illumos-joyent-bc54f855e0de1e590115101c80f152a20722cfb0.tar.gz |
10120 smatch indenting fixes for usr/src/cmd
Reviewed by: Gergő Doma <domag02@gmail.com>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/cmd/cmd-inet/common/kcmd.c')
-rw-r--r-- | usr/src/cmd/cmd-inet/common/kcmd.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/src/cmd/cmd-inet/common/kcmd.c b/usr/src/cmd/cmd-inet/common/kcmd.c index 35d2c4ee96..c4a078c96a 100644 --- a/usr/src/cmd/cmd-inet/common/kcmd.c +++ b/usr/src/cmd/cmd-inet/common/kcmd.c @@ -20,6 +20,10 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +/* + * Copyright (c) 2018, Joyent, Inc. + */ + /* derived from @(#)rcmd.c 5.17 (Berkeley) 6/27/88 */ #include <unistd.h> @@ -412,8 +416,11 @@ kcmd(int *sock, char **ahost, ushort_t rport, *sock = s; /* pass back credentials if wanted */ - if (cred) (void) krb5_copy_creds(bsd_context, ret_cred, cred); - krb5_free_creds(bsd_context, ret_cred); + if (cred) + (void) krb5_copy_creds(bsd_context, ret_cred, cred); + + krb5_free_creds(bsd_context, ret_cred); + /* * Initialize *authconp to auth_context, so * that the clients can make use of it |