From 1759d89d8a5db0bf84d32b692fddbd406cf4cf34 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 24 Jan 2013 18:52:36 +0100 Subject: [PATCH] Print error message when MD5 init fails in chronyc --- client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index a2faf0a..64c743f 100644 --- a/client.c +++ b/client.c @@ -2849,7 +2849,10 @@ main(int argc, char **argv) /* MD5 is the default authentication hash */ auth_hash_id = HSH_GetHashId("MD5"); - assert(auth_hash_id >= 0); + if (auth_hash_id < 0) { + fprintf(stderr, "Could not initialize MD5\n"); + return 1; + } open_io(hostname, port);