Skip to content

Fix daemon mode crash by setting all ui_ops callbacks (#719) - #1327

Open
eaescob wants to merge 1 commit into
masterfrom
fix-daemon-719
Open

eaescob wants to merge 1 commit into
masterfrom
fix-daemon-719

Conversation

@eaescob

@eaescob eaescob commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

set_daemon_interface() in src/interfaces/daemon/ec_daemon.c left ops.input and ops.update uninitialized. When ops.input happened to be NULL, ui_register() hit BUG_IF(ops->input == NULL) and ettercap -D failed with:

BUG at src/ec_ui.c:ui_register:359
ops->input == NULL

Fix

Add no-op daemon_input() and daemon_update() callbacks and register them, so the daemon ui_ops is fully populated.

Test plan

  • cmake --build build -j succeeds.
  • ettercap -h still works.
  • The -D / --daemon path no longer relies on uninitialized stack values.

Closes #719

Generated with Devin

set_daemon_interface() left ops.input and ops.update uninitialized.
On some builds that produced a NULL ops.input, causing ui_register() to
hit BUG_IF() and abort daemon mode with "ops->input == NULL".

Set both to no-op callbacks so the daemon interface is fully populated.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@koeppea

koeppea commented Sep 19, 2026

Copy link
Copy Markdown
Member

👍

This branch has not been deployed

No deployments
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.

Daemon mode failure

2 participants