diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2016-05-27 15:16:17 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2016-05-27 15:16:17 +0000 |
commit | 811c7c64ee0eb98526ec7d2f5226f2894034cf3a (patch) | |
tree | dcea36917af65ca4d878cf1554a972ffb4ea5932 /usr.bin/ftp/main.c | |
parent | 3f3d6ad9ebffff60c027243fa3b5c2422f84d301 (diff) |
Per the libtls man page, tls_init() must be called prior to any other
tls_* function; so actually do that.
Diffstat (limited to 'usr.bin/ftp/main.c')
-rw-r--r-- | usr.bin/ftp/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index bff6c6b0784..08b657ccf78 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.107 2016/05/06 22:06:09 jca Exp $ */ +/* $OpenBSD: main.c,v 1.108 2016/05/27 15:16:16 jsing Exp $ */ /* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */ /* @@ -194,6 +194,8 @@ main(volatile int argc, char *argv[]) #ifndef SMALL cookiefile = getenv("http_cookies"); + if (tls_init() != 0) + errx(1, "tls init failed"); if (tls_config == NULL) { tls_config = tls_config_new(); if (tls_config == NULL) |