summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-02-15 13:08:02 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-02-15 13:08:02 +0000
commit92d6a6bea701999372b94d74581ef7d0e8017b26 (patch)
treed5fce87600db717845be7b134347bccb8d6c67a5 /usr.bin/ssh
parentc27bb9ba6059a3aae770416fc0164b25e5211b6a (diff)
retry rresvport_af(), too. from sumikawa@ebina.hitachi.co.jp.
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/sshconnect.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index 80963ba9643..07bdc7f0e20 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -8,7 +8,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect.c,v 1.54 2000/02/05 10:13:11 markus Exp $");
+RCSID("$OpenBSD: sshconnect.c,v 1.55 2000/02/15 13:08:01 markus Exp $");
#include <ssl/bn.h>
#include "xmalloc.h"
@@ -150,8 +150,9 @@ ssh_create_socket(uid_t original_real_uid, int privileged, int family)
int p = IPPORT_RESERVED - 1;
sock = rresvport_af(&p, family);
if (sock < 0)
- fatal("rresvport: af=%d %.100s", family, strerror(errno));
- debug("Allocated local port %d.", p);
+ error("rresvport: af=%d %.100s", family, strerror(errno));
+ else
+ debug("Allocated local port %d.", p);
} else {
/*
* Just create an ordinary socket on arbitrary port. We use