Skip to content

mosquitto_ctrl: Fix file descriptor leak in dynsec_init()#3685

Open
arshidkv12 wants to merge 1 commit into
eclipse-mosquitto:masterfrom
arshidkv12:fix/dynsec-fd-leak-on-fdopen-failure
Open

mosquitto_ctrl: Fix file descriptor leak in dynsec_init()#3685
arshidkv12 wants to merge 1 commit into
eclipse-mosquitto:masterfrom
arshidkv12:fix/dynsec-fd-leak-on-fdopen-failure

Conversation

@arshidkv12

@arshidkv12 arshidkv12 commented Jul 4, 2026

Copy link
Copy Markdown

Close the file descriptor returned by open() when fdopen()
fails in dynsec_init(). Without this, the descriptor remains
open until process exit.

#3678

Checklist

  • Commits signed off (Signed-off-by, DCO), email matches Eclipse account
  • ECA signed
  • Based on and targeting fix
  • Run make test with my changes locally

Signed-off-by: arshidkv12 <arshidkv12@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant