]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use new function for clearing error stack
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 25 Jan 2021 16:17:30 +0000 (16:17 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 25 Jan 2021 16:17:30 +0000 (16:17 +0000)
src/lib/server/main_config.c
src/lib/server/virtual_servers.c
src/lib/util/dpair.c

index 2cf5f0b95edbb2ade01b14b9a745a187eef165fa..667bdb37d53b2618921e124e58e84188194eaf57 100644 (file)
@@ -1239,7 +1239,7 @@ do {\
        config->root_cs = cs;   /* Do this last to avoid dangling pointers on error */
 
        /* Clear any unprocessed configuration errors */
-       (void) fr_strerror();
+       fr_strerror_clear();
 
        return 0;
 }
index 484721367e7d61a3e6c1b8aae0b8ccb2e9517840..4ca8bbfa5db54d4586376dad509aa0cd18c49dd8 100644 (file)
@@ -740,7 +740,7 @@ int virtual_servers_open(fr_schedule_t *sc)
        fr_assert(virtual_servers);
 
        DEBUG2("#### Opening listener interfaces ####");
-       (void) fr_strerror();
+       fr_strerror_clear();
 
        for (i = 0; i < server_cnt; i++) {
                fr_virtual_listen_t     **listener;
index 2f2af46efd469c43ec72555c45d866f24357eb93..769a517f4cabbc1e9061855fe709e3537c440730 100644 (file)
@@ -669,7 +669,7 @@ void _fr_pair_add(fr_pair_list_t *list, fr_pair_t *add, bool prepend)
        } else {
                fr_dlist_insert_tail(&list->head, add);
        }
-       
+
 }
 
 /** Replace first matching VP
@@ -1212,7 +1212,7 @@ void fr_pair_list_sort(fr_pair_list_t *list, fr_cmp_t cmp)
        head->entry.prev = &list->head.entry;
        while (head) {
                if (head->entry.next) {
-                       /* 
+                       /*
                         * There is a "next" entry, point it back to the current one
                         */
                        head->entry.next->prev = &head->entry;
@@ -1243,7 +1243,7 @@ void fr_pair_validate_debug(TALLOC_CTX *ctx, fr_pair_t const *failed[2])
 
        char *value, *str;
 
-       (void) fr_strerror();   /* Clear any existing messages */
+       fr_strerror_clear();    /* Clear any existing messages */
 
        if (!list) {
                if (!filter) {