diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 20:03:56 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 20:03:56 +1100 |
commit | e83c3ea4b8086c04c9ba0d012808d9c65c0bbe65 (patch) | |
tree | cc0e903c5c7da48759f7612a7700b6f60e96a24f /misc.c | |
parent | 843f0fa16d7e8aca36c1b14d933da2a1844d5a74 (diff) | |
download | openssh-git-e83c3ea4b8086c04c9ba0d012808d9c65c0bbe65.tar.gz |
- (dtucker) [misc.c] Move the routingdomain ifdef to allow the socket to
be created.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -155,7 +155,6 @@ set_nodelay(int fd) int socket_rdomain(int domain, int type, int protocol, int rdomain) { -#ifdef USE_ROUTINGDOMAIN int sock, ipproto = IPPROTO_IP; if ((sock = socket(domain, type, protocol)) == -1) @@ -163,7 +162,8 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) if (rdomain == -1) return (sock); - + +#ifdef USE_ROUTINGDOMAIN switch (domain) { case AF_INET6: ipproto = IPPROTO_IPV6; @@ -187,6 +187,8 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) } return (sock); +#else + return (-1); #endif } |