summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.in4
-rw-r--r--sshconnect.c2
3 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 9f75b1ffb..de0b69f91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
120000513
2 - Fix for non-recognised DSA keys from Arkadiusz Miskiewicz
3 <misiek@pld.org.pl>
4
120000511 520000511
2 - Fix for prng_seed permissions checking from Lutz Jaenicke 6 - Fix for prng_seed permissions checking from Lutz Jaenicke
3 <Lutz.Jaenicke@aet.TU-Cottbus.DE> 7 <Lutz.Jaenicke@aet.TU-Cottbus.DE>
8 - "make host-key" fix for Irix
4 9
520000509 1020000509
6 - OpenBSD CVS update 11 - OpenBSD CVS update
diff --git a/Makefile.in b/Makefile.in
index 39f2f9959..7c96adc7f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -140,8 +140,8 @@ install: manpages $(TARGETS)
140 fi 140 fi
141 141
142host-key: ssh-keygen 142host-key: ssh-keygen
143 ./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N '' 143 ./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N ""
144 ./ssh-keygen -d -f $(sysconfdir)/ssh_host_dsa_key -N '' 144 ./ssh-keygen -d -f $(sysconfdir)/ssh_host_dsa_key -N ""
145 145
146uninstallall: uninstall 146uninstallall: uninstall
147 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config 147 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config
diff --git a/sshconnect.c b/sshconnect.c
index 9b25d7c20..d74658c96 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -255,7 +255,7 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr,
255 temporarily_use_uid(original_real_uid); 255 temporarily_use_uid(original_real_uid);
256 if (connect(sock, ai->ai_addr, ai->ai_addrlen) >= 0) { 256 if (connect(sock, ai->ai_addr, ai->ai_addrlen) >= 0) {
257 /* Successful connection. */ 257 /* Successful connection. */
258 memcpy(hostaddr, ai->ai_addr, sizeof(*(ai->ai_addr))); 258 memcpy(hostaddr, ai->ai_addr, ai->ai_addrlen);
259 restore_uid(); 259 restore_uid();
260 break; 260 break;
261 } else { 261 } else {