From c832d7f4546cd0217d0a9be2fd13ebaca886f704 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 15 Jul 2009 22:01:47 +0300 Subject: Several bug fixes by Fabian Keil (some were modified by me). --- src/psk.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/psk.c') diff --git a/src/psk.c b/src/psk.c index b0047e08ee..7de5ea5e21 100644 --- a/src/psk.c +++ b/src/psk.c @@ -138,6 +138,11 @@ main (int argc, char **argv) ret = gnutls_psk_netconf_derive_key (passwd, info.username, info.netconf_hint, &dkey); + if (ret < 0) + { + fprintf (stderr, "Deriving the key failed\n"); + exit (1); + } } else { -- cgit v1.2.1