Skip to content

Commit 0bb54b2

Browse files
committed
Pacify Coverity (CID #1520878)
Coverity doesn't see that fd < 0 means the lock was released
1 parent 28a0fb6 commit 0bb54b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/rlm_linelog/rlm_linelog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ static int linelog_write(rlm_linelog_t const *inst, linelog_call_env_t const *ca
408408
fd = exfile_open(inst->file.ef, path, inst->file.permissions, &offset);
409409
if (fd < 0) {
410410
RERROR("Failed to open %pV: %s", call_env->filename, fr_syserror(errno));
411+
412+
/* coverity[missing_unlock] */
411413
return -1;
412414
}
413415

0 commit comments

Comments
 (0)