diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Makefile.in | 4 | ||||
-rw-r--r-- | sshconnect.c | 2 |
3 files changed, 8 insertions, 3 deletions
@@ -1,6 +1,11 @@ | |||
1 | 20000513 | ||
2 | - Fix for non-recognised DSA keys from Arkadiusz Miskiewicz | ||
3 | <misiek@pld.org.pl> | ||
4 | |||
1 | 20000511 | 5 | 20000511 |
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 | ||
5 | 20000509 | 10 | 20000509 |
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 | ||
142 | host-key: ssh-keygen | 142 | host-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 | ||
146 | uninstallall: uninstall | 146 | uninstallall: 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 { |