On Tue, Aug 26, 2025 at 8:35 AM Eelco Chaudron via dev <
[email protected]> wrote:

> Coverity reported a possible null dereference of ctx->db
> inside the event processing loop in ovsdb_relay_run().
>
> In practice, ctx->db is guaranteed to be non-NULL for valid relay_ctx
> structures. Adding ovs_assert(ctx->db) documents this invariant and
> ensures debug builds catch any misuse.
>
> No change in runtime behavior; this only improves code safety and
> satisfies static analysis.
>
> Signed-off-by: Eelco Chaudron <[email protected]>
> ---


Acked-by: Mike Pattrick <[email protected]>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to