Print this page
10120 smatch indenting fixes for usr/src/cmd
Reviewed by: Gergő Doma <domag02@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>

@@ -18,10 +18,14 @@
  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * 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>
 #include <stdlib.h>
 #include <stdio.h>

@@ -410,12 +414,15 @@
         }
         (void) sigprocmask(SIG_SETMASK, &oldmask, (sigset_t *)0);
         *sock = s;
 
         /* pass back credentials if wanted */
-        if (cred) (void) krb5_copy_creds(bsd_context, ret_cred, 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
          */
         *authconp = auth_context;