From 30443dbf239420a45533ba32fd848841bece2f56 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 16 Sep 2020 13:37:01 -0700 Subject: [PATCH] Fix Client Usage A string in the client's usage text was made optional depending on the NO_PSK option, but there was still an attempt to print it. This lead to a NULL being printed instead. Fixed the print statement. --- examples/client/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/client/client.c b/examples/client/client.c index c0601e323..cfbfc8b4a 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -1310,7 +1310,9 @@ static void Usage(void) printf("%s", msg[++msgid]); /* -L */ #endif printf("%s", msg[++msgid]); /* -B */ +#ifndef NO_PSK printf("%s", msg[++msgid]); /* -s */ +#endif printf("%s", msg[++msgid]); /* -d */ printf("%s", msg[++msgid]); /* -D */ printf("%s", msg[++msgid]); /* -e */