summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index b71a2c71a..b00caa547 100644
--- a/session.c
+++ b/session.c
@@ -186,7 +186,7 @@ auth_input_request_forwarding(struct passwd * pw)
186 sunaddr.sun_family = AF_UNIX; 186 sunaddr.sun_family = AF_UNIX;
187 strlcpy(sunaddr.sun_path, auth_sock_name, sizeof(sunaddr.sun_path)); 187 strlcpy(sunaddr.sun_path, auth_sock_name, sizeof(sunaddr.sun_path));
188 188
189 if (bind(sock, (struct sockaddr *) & sunaddr, sizeof(sunaddr)) < 0) 189 if (bind(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0)
190 packet_disconnect("bind: %.100s", strerror(errno)); 190 packet_disconnect("bind: %.100s", strerror(errno));
191 191
192 /* Restore the privileged uid. */ 192 /* Restore the privileged uid. */
@@ -643,7 +643,7 @@ do_pre_login(Session *s)
643 fromlen = sizeof(from); 643 fromlen = sizeof(from);
644 if (packet_connection_is_on_socket()) { 644 if (packet_connection_is_on_socket()) {
645 if (getpeername(packet_get_connection_in(), 645 if (getpeername(packet_get_connection_in(),
646 (struct sockaddr *) & from, &fromlen) < 0) { 646 (struct sockaddr *)&from, &fromlen) < 0) {
647 debug("getpeername: %.100s", strerror(errno)); 647 debug("getpeername: %.100s", strerror(errno));
648 cleanup_exit(255); 648 cleanup_exit(255);
649 } 649 }