summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/afs/src/arlad/kernel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/afs/src/arlad/kernel.c b/usr.sbin/afs/src/arlad/kernel.c
index d300263147a..14c94757302 100644
--- a/usr.sbin/afs/src/arlad/kernel.c
+++ b/usr.sbin/afs/src/arlad/kernel.c
@@ -211,8 +211,8 @@ tcp_write (int fd, const void *data, size_t len)
int32_t slen = htonl(len);
char out_len[4];
- memcpy (out_len, &slen, sizeof(len));
- if (send (fd, out_len, sizeof(len), 0) != sizeof(out_len)) {
+ memcpy (out_len, &slen, sizeof(slen));
+ if (send (fd, out_len, sizeof(slen), 0) != sizeof(out_len)) {
arla_warn (ADEBWARN, errno, "tcp_write: failed to write length");
return -1;
}