summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2014-10-11 12:13:22 +0200
committerAlexander Færøy <ahf@0x90.dk>2014-10-11 12:13:22 +0200
commit10078407f6cab2e25e35be37dba903d91126f561 (patch)
tree0bca77bf155b0b631f62a812b1bbb285f510e2a7
parent3f50b8f2ad7e9a10aab1ff88c58141563c4dd68a (diff)
downloadirssi-10078407f6cab2e25e35be37dba903d91126f561.zip
Remove unnecessary NULL check
Fixes: #135
-rw-r--r--src/core/servers.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/servers.c b/src/core/servers.c
index 06f82d4d..6eaad191 100644
--- a/src/core/servers.c
+++ b/src/core/servers.c
@@ -218,9 +218,7 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip,
return;
if (ip != NULL) {
- own_ip = ip == NULL ? NULL :
- (IPADDR_IS_V6(ip) ? server->connrec->own_ip6 :
- server->connrec->own_ip4);
+ own_ip = IPADDR_IS_V6(ip) ? server->connrec->own_ip6 : server->connrec->own_ip4;
port = server->connrec->proxy != NULL ?
server->connrec->proxy_port : server->connrec->port;
handle = server->connrec->use_ssl ?