Print error message when MD5 init fails in chronyc
This commit is contained in:
parent
0540b17fb9
commit
1759d89d8a
1 changed files with 4 additions and 1 deletions
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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue