8000 event_pending() crashes if ev_base is not set · Issue #19 · libevent/libevent · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
event_pending() crashes if ev_base is not set #19
Closed
@tony2001

Description

@tony2001

This was introduced by be7a95c, event_pending() now tries to lock ev_base, but fails to check if it's set and ends up crashing.
I'd suggest to add some check similar to that in event_add() or event_del(), though I'm not sure what the return value should be in case of error: -1 or 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0