summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-05-15 14:03:08 +0200
committerSimon Josefsson <simon@josefsson.org>2008-05-15 14:03:08 +0200
commitd7b633d417e864487956eaf18d8e14c7914758fa (patch)
treeef3e5c934eb2536c111e81ff29f89e302eaf355d /src
parent808f9acc76c6f45f211d377b64d25a562fad08e0 (diff)
downloadgnutls-d7b633d417e864487956eaf18d8e14c7914758fa.tar.gz
Fix so that PSK authentication works.
Diffstat (limited to 'src')
-rw-r--r--src/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index 556e974f4a..8c024e3c45 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1045,7 +1045,7 @@ init_global_tls_stuff (void)
#endif
#ifdef ENABLE_PSK
- if (psk_username && !psk_key.data)
+ if (psk_username && psk_key.data)
{
/* SRP stuff */
if (gnutls_psk_allocate_client_credentials (&psk_cred) < 0)