Bugzilla – Attachment 2533 Details for
Bug 1213
ssh-keyscan exits in mid-way
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't fatal on getaddrinfo failures
keyscan-nofatal-addrinfo.diff (text/plain), 652 bytes, created by
Damien Miller
on 2015-01-27 19:07:31 AEDT
(
hide
)
Description:
Don't fatal on getaddrinfo failures
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2015-01-27 19:07:31 AEDT
Size:
652 bytes
patch
obsolete
>diff --git ssh-keyscan.c ssh-keyscan.c >index 62dbd62..48a4cf4 100644 >--- ssh-keyscan.c >+++ ssh-keyscan.c >@@ -317,8 +317,10 @@ tcpconnect(char *host) > memset(&hints, 0, sizeof(hints)); > hints.ai_family = IPv4or6; > hints.ai_socktype = SOCK_STREAM; >- if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) >- fatal("getaddrinfo %s: %s", host, ssh_gai_strerror(gaierr)); >+ if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) { >+ error("getaddrinfo %s: %s", host, ssh_gai_strerror(gaierr)); >+ return -1; >+ } > for (ai = aitop; ai; ai = ai->ai_next) { > s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); > if (s < 0) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1213
:
1961
|
1969
|
2000
|
2005
|
2008
|
2016
|
2018
|
2021
|
2057
|
2197
|
2533
|
2536
|
2537
|
2540