]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Print error message when MD5 init fails in chronyc
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 24 Jan 2013 17:52:36 +0000 (18:52 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 24 Jan 2013 18:04:49 +0000 (19:04 +0100)
client.c

index a2faf0af34f7c4798d2f5f3988e4f06e8b5ddac9..64c743f9393c277c04cb060bb852fb743e4b3262 100644 (file)
--- 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);