diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libtls/tls_client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libtls/tls_client.c b/src/lib/libtls/tls_client.c index 168a7089fc..55fb49ff78 100644 --- a/src/lib/libtls/tls_client.c +++ b/src/lib/libtls/tls_client.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_client.c,v 1.21 2015/08/27 15:26:50 jsing Exp $ */ | 1 | /* $OpenBSD: tls_client.c,v 1.22 2015/09/08 15:29:34 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -114,8 +114,10 @@ tls_connect_servername(struct tls *ctx, const char *host, const char *port, | |||
114 | tls_set_errorx(ctx, "memory allocation failure"); | 114 | tls_set_errorx(ctx, "memory allocation failure"); |
115 | goto err; | 115 | goto err; |
116 | } | 116 | } |
117 | if (ret != 0) | 117 | if (ret != 0) { |
118 | port = HTTPS_PORT; | 118 | tls_set_errorx(ctx, "no port provided"); |
119 | goto err; | ||
120 | } | ||
119 | } | 121 | } |
120 | 122 | ||
121 | h = (hs != NULL) ? hs : host; | 123 | h = (hs != NULL) ? hs : host; |