summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-09-20 15:54:28 +0200
committerSimon Josefsson <simon@josefsson.org>2007-09-20 15:54:28 +0200
commit5b9cdbd21094915172273834528aaf67c5500a44 (patch)
tree5a61880c24d91dd249adfa897d756c720be0f11e /src/cli.c
parentdf373bf9deed993aaa9e39f74afb4801e7e06526 (diff)
downloadgnutls-5b9cdbd21094915172273834528aaf67c5500a44.tar.gz
Fix crash.
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cli.c b/src/cli.c
index 49dd6f9b67..313bf9e344 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -537,8 +537,9 @@ init_tls_session (const char *hostname)
#endif
#ifdef ENABLE_OPRFI
- gnutls_oprfi_enable_client (session, strlen (info.opaque_prf_input),
- info.opaque_prf_input);
+ if (info.opaque_prf_input)
+ gnutls_oprfi_enable_client (session, strlen (info.opaque_prf_input),
+ info.opaque_prf_input);
#endif
return session;