]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fail if we can't start time
authorAlan T. DeKok <aland@freeradius.org>
Wed, 21 Dec 2016 18:36:00 +0000 (13:36 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 21 Dec 2016 18:36:13 +0000 (13:36 -0500)
src/tests/util/worker_test.c

index 0ff13f220cd02f21b6258ea1fb85400233cb536e..5e52529b9e351c87a45f5dd22f2dda5456f04fbd 100644 (file)
@@ -449,7 +449,10 @@ int main(int argc, char *argv[])
        int c;
        TALLOC_CTX      *autofree = talloc_init("main");
 
-       fr_time_start();
+       if (fr_time_start() < 0) {
+               fprintf(stderr, "Failed to start time: %s\n", strerror(errno));
+               exit(1);
+       }
 
        while ((c = getopt(argc, argv, "c:hm:o:qtw:x")) != EOF) switch (c) {
                case 'x':