Skip to content

src/stconn.c: null pointer dereference suspected by coverity #2156

Description

@chipitsine

Tool Name and Version

coverity

Code Report

*** CID 1511031:  Null pointer dereferences  (FORWARD_NULL)
/src/stconn.c: 367 in sc_detach_endp()
361                     /* Remove my link in the original objects. */
362                     peer = xref_get_peer_and_lock(&sc->sedesc->xref);
363                     if (peer)
364                             xref_disconnect(&sc->sedesc->xref, peer);
365             }
366     
>>>     CID 1511031:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing "sc" to "sc_ep_test", which dereferences null "sc->sedesc".
367             if (sc_ep_test(sc, SE_FL_T_MUX)) {
368                     struct connection *conn = __sc_conn(sc);
369                     struct sedesc *sedesc = sc->sedesc;
370     
371                     if (conn->mux) {
372                             if (sc->wait_event.events != 0)

Additional Information

No response

Output of haproxy -vv

no

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: fixedThis issue is a now-fixed bug.type: code-reportThis issue describes a code report (like valgrind or coverity)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions