mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 08:35:06 -05:00
Print error message when MD5 init fails in chronyc
This commit is contained in:
5
client.c
5
client.c
@@ -2849,7 +2849,10 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
/* MD5 is the default authentication hash */
|
/* MD5 is the default authentication hash */
|
||||||
auth_hash_id = HSH_GetHashId("MD5");
|
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);
|
open_io(hostname, port);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user