diff options
author | wtc%google.com <devnull@localhost> | 2008-02-05 02:10:45 +0000 |
---|---|---|
committer | wtc%google.com <devnull@localhost> | 2008-02-05 02:10:45 +0000 |
commit | 0ae7658ff284edfbf644dae9e7cc8e0531b085ce (patch) | |
tree | ae81a6f02908426fb83c3d441bc90ff8cb9bd50c | |
parent | 24317f70862dd6ccee665faf767453792f9a0f9b (diff) | |
download | nss-hg-0ae7658ff284edfbf644dae9e7cc8e0531b085ce.tar.gz |
Bug 334961: ignore the PR_ADDRESS_IN_USE_ERROR from PR_Connect.
-rw-r--r-- | security/nss/cmd/strsclnt/strsclnt.c | 3 | ||||
-rw-r--r-- | security/nss/cmd/tstclnt/tstclnt.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/security/nss/cmd/strsclnt/strsclnt.c b/security/nss/cmd/strsclnt/strsclnt.c index a0cc61934..b56c82b50 100644 --- a/security/nss/cmd/strsclnt/strsclnt.c +++ b/security/nss/cmd/strsclnt/strsclnt.c @@ -799,7 +799,8 @@ retry: PR_Unlock(threadLock); } if ((err == PR_CONNECT_REFUSED_ERROR) || - (err == PR_CONNECT_RESET_ERROR) ) { + (err == PR_CONNECT_RESET_ERROR) || + (err == PR_ADDRESS_IN_USE_ERROR) ) { int connections = numConnected; PR_Close(tcp_sock); diff --git a/security/nss/cmd/tstclnt/tstclnt.c b/security/nss/cmd/tstclnt/tstclnt.c index ef544d128..5257986f7 100644 --- a/security/nss/cmd/tstclnt/tstclnt.c +++ b/security/nss/cmd/tstclnt/tstclnt.c @@ -711,7 +711,8 @@ int main(int argc, char **argv) } err = PR_GetError(); if ((err != PR_CONNECT_REFUSED_ERROR) && - (err != PR_CONNECT_RESET_ERROR)) { + (err != PR_CONNECT_RESET_ERROR) && + (err != PR_ADDRESS_IN_USE_ERROR)) { SECU_PrintError(progName, "TCP Connection failed"); return 1; } |