]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
missing_lock, not missing_unlock (CID #1414431) (#4635)
authorJames Jones <jejones3141@gmail.com>
Wed, 3 Aug 2022 13:42:47 +0000 (08:42 -0500)
committerGitHub <noreply@github.com>
Wed, 3 Aug 2022 13:42:47 +0000 (09:42 -0400)
Typo in coverity annotation. Unnecessary missing_lock annotations
have been removed.

src/lib/server/exfile.c
src/lib/server/pool.c
src/modules/rlm_detail/rlm_detail.c
src/modules/rlm_linelog/rlm_linelog.c
src/modules/rlm_sql/sql.c

index 4323f4741ad20e98516fcbd565d40c34e1ba42fd..2ff0f0677046254aeaff6c89fb554526b62d277f 100644 (file)
@@ -508,7 +508,6 @@ try_lock:
 
        exfile_trigger_exec(ef, &ef->entries[i], "reserve");
 
-       /* coverity[missing_unlock] */
        return ef->entries[i].fd;
 }
 
index 2269c9603c585bed06833bf50ebe1a4d024022f3..c7161f287750e02cc92bda784b747e9d71d6c1dd 100644 (file)
@@ -295,7 +295,6 @@ static fr_pool_connection_t *connection_find(fr_pool_t *pool, void *conn)
 #endif
 
                        fr_assert(this->in_use == true);
-                       /* coverity[missing_unlock] */
                        return this;
                }
        }
@@ -518,7 +517,6 @@ static fr_pool_connection_t *connection_spawn(fr_pool_t *pool, request_t *reques
        pthread_cond_broadcast(&pool->done_spawn);
        if (unlock) pthread_mutex_unlock(&pool->mutex);
 
-       /* coverity[missing_unlock] */
        return this;
 }
 
@@ -1051,7 +1049,7 @@ fr_pool_t *fr_pool_init(TALLOC_CTX *ctx,
                goto error;
        }
 
-       /* coverity[missing_unlock] */
+       /* coverity[missing_lock] */
        pool->pending_window = (pool->max_pending > 0) ? pool->max_pending : pool->max;
 
        if (pool->min > pool->max) {
index 233e1e18a4db4c2fc99dbf727f483be9cdb52dcc..3b93a97051e467d8d224fcdc584d4674c43b7994 100644 (file)
@@ -379,7 +379,6 @@ static unlang_action_t CC_HINT(nonnull) detail_do(rlm_rcode_t *p_result, module_
        outfd = exfile_open(inst->ef, buffer, inst->perm);
        if (outfd < 0) {
                RPERROR("Couldn't open file %s", buffer);
-               /* coverity[missing_unlock] */
                RETURN_MODULE_FAIL;
        }
 
index 9434ae3096a115b2f36c7cc68ddbe7fdebd8ad87..5861791f24e55993e8ec74198a58bf56f10f7af8 100644 (file)
@@ -782,7 +782,6 @@ finish:
        talloc_free(vpt);
        talloc_free(vector);
 
-       /* coverity[missing_unlock] */
        RETURN_MODULE_RCODE(rcode);
 }
 
index 43309a4eb60df1174830bae0d97e9bcc5d0bf1cb..db6777db8c24f0ae35b9c513dda6c5b288212f23 100644 (file)
@@ -612,7 +612,6 @@ void rlm_sql_query_log(rlm_sql_t const *inst, request_t *request, sql_acct_secti
                ERROR("Couldn't open logfile '%s': %s", expanded, fr_syserror(errno));
 
                talloc_free(expanded);
-               /* coverity[missing_unlock] */
                return;
        }