summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-05-13 12:31:22 +1000
committerDamien Miller <djm@mindrot.org>2000-05-13 12:31:22 +1000
commit95fe91bd84d7613ce37cb8b38212c4301610639f (patch)
tree086034ee41c00ec2dd3df27c9c985b21a4feab5b /sshconnect.c
parentaccfeb3afe07be4875e33dc8f269c868ea929274 (diff)
- Fix for non-recognised DSA keys from Arkadiusz Miskiewicz
<misiek@pld.org.pl>
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 9b25d7c2..d74658c9 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -255,7 +255,7 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr,
temporarily_use_uid(original_real_uid);
if (connect(sock, ai->ai_addr, ai->ai_addrlen) >= 0) {
/* Successful connection. */
- memcpy(hostaddr, ai->ai_addr, sizeof(*(ai->ai_addr)));
+ memcpy(hostaddr, ai->ai_addr, ai->ai_addrlen);
restore_uid();
break;
} else {