diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-26 11:28:51 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-26 11:28:51 +0200 |
commit | 2dda25d95dd45c83402088d53dbb5b0f7c893f9d (patch) | |
tree | 2e377effe73bf040ac82b8c08e3426a1efc9aea7 /src/cli.c | |
parent | 867f95f07b89c077b69d77a6c0f1dc2cbe6ef5da (diff) | |
download | gnutls-2dda25d95dd45c83402088d53dbb5b0f7c893f9d.tar.gz |
tools: allow socket_bye() to be used for non-polite terminations
Diffstat (limited to 'src/cli.c')
-rw-r--r-- | src/cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -908,7 +908,7 @@ static int try_resume(socket_st * hd) } printf("- Disconnecting\n"); - socket_bye(hd); + socket_bye(hd, 1); canonicalize_host(hostname, service, sizeof(service)); @@ -1408,9 +1408,9 @@ int main(int argc, char **argv) } if (user_term != 0) - socket_bye(&hd); + socket_bye(&hd, 1); else - gnutls_deinit(hd.session); + socket_bye(&hd, 0); #ifdef ENABLE_SRP if (srp_cred) |