]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix misleading indentation in clnt_udp.c 846/head
authorRobbie Harwood <rharwood@redhat.com>
Tue, 18 Sep 2018 18:19:55 +0000 (14:19 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 19 Sep 2018 16:20:56 +0000 (12:20 -0400)
gcc warns that the `if` statement doesn't guard the length
assignment, which is true.  However, it wouldn't make sense for the
length assignment to be guarded by the `if` clause anyway, since the
previous statement is a `goto`.  De-indent for clarity.

src/lib/rpc/clnt_udp.c

index 3d7a459d1f24606b7a2f70702ec06e60ad67e2ad..49b09e051bb14bcba1bce85f19424e28917a0d70 100644 (file)
@@ -196,7 +196,7 @@ clntudp_bufcreate(
        }
        if (connect(*sockp, (struct sockaddr *)raddr, sizeof(*raddr)) < 0)
             goto fooy;
-            cu->cu_llen = sizeof(cu->cu_laddr);
+       cu->cu_llen = sizeof(cu->cu_laddr);
        if (getsockname(*sockp, (struct sockaddr *)&cu->cu_laddr, &cu->cu_llen) < 0)
             goto fooy;