summaryrefslogtreecommitdiff
path: root/auth-krb4.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-03-17 23:40:15 +1100
committerDamien Miller <djm@mindrot.org>2000-03-17 23:40:15 +1100
commit7684ee17ee96426970c00cb44d9d00b6611b9a57 (patch)
treecb447b6e9d3fdc10b3e66a90b198092d7245447a /auth-krb4.c
parentd6121d2972c1a6924f6d186ea04eefe9dab774ef (diff)
- OpenBSD CVS updates:
- [atomicio.c auth-krb4.c bufaux.c channels.c compress.c fingerprint.c] [packet.h radix.c rsa.c scp.c ssh-agent.c ssh-keygen.c sshconnect.c] [sshd.c] pedantic: signed vs. unsigned, void*-arithm, etc - [ssh.1 sshd.8] Various cleanups and standardizations.
Diffstat (limited to 'auth-krb4.c')
-rw-r--r--auth-krb4.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/auth-krb4.c b/auth-krb4.c
index fb0e20ce2..95fc7229f 100644
--- a/auth-krb4.c
+++ b/auth-krb4.c
@@ -186,19 +186,20 @@ auth_krb4(const char *server_user, KTEXT auth, char **client)
186 KTEXT_ST reply; 186 KTEXT_ST reply;
187 char instance[INST_SZ]; 187 char instance[INST_SZ];
188 int r, s; 188 int r, s;
189 socklen_t slen;
189 u_int cksum; 190 u_int cksum;
190 Key_schedule schedule; 191 Key_schedule schedule;
191 struct sockaddr_in local, foreign; 192 struct sockaddr_in local, foreign;
192 193
193 s = packet_get_connection_in(); 194 s = packet_get_connection_in();
194 195
195 r = sizeof(local); 196 slen = sizeof(local);
196 memset(&local, 0, sizeof(local)); 197 memset(&local, 0, sizeof(local));
197 if (getsockname(s, (struct sockaddr *) & local, &r) < 0) 198 if (getsockname(s, (struct sockaddr *) & local, &slen) < 0)
198 debug("getsockname failed: %.100s", strerror(errno)); 199 debug("getsockname failed: %.100s", strerror(errno));
199 r = sizeof(foreign); 200 slen = sizeof(foreign);
200 memset(&foreign, 0, sizeof(foreign)); 201 memset(&foreign, 0, sizeof(foreign));
201 if (getpeername(s, (struct sockaddr *) & foreign, &r) < 0) { 202 if (getpeername(s, (struct sockaddr *) & foreign, &slen) < 0) {
202 debug("getpeername failed: %.100s", strerror(errno)); 203 debug("getpeername failed: %.100s", strerror(errno));
203 fatal_cleanup(); 204 fatal_cleanup();
204 } 205 }