summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-26 11:28:51 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-26 11:28:51 +0200
commit2dda25d95dd45c83402088d53dbb5b0f7c893f9d (patch)
tree2e377effe73bf040ac82b8c08e3426a1efc9aea7 /src/cli.c
parent867f95f07b89c077b69d77a6c0f1dc2cbe6ef5da (diff)
downloadgnutls-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli.c b/src/cli.c
index ad4e265f63..066a16b327 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -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)