Thanks to visit codestin.com
Credit goes to github.com

Skip to content

src/quic_ssl.c: null pointer dereference suspected by coverity #3163

@chipitsine

Description

@chipitsine

Tool Name and Version

coverity

Code Report

** CID 1641300:       Null pointer dereferences  (FORWARD_NULL)
/src/quic_ssl.c: 984           in qc_ssl_do_hanshake()


_____________________________________________________________________________________________
*** CID 1641300:         Null pointer dereferences  (FORWARD_NULL)
/src/quic_ssl.c: 984             in qc_ssl_do_hanshake()
978     			}
979     		}
980     		else {
981     			const unsigned char *alpn;
982     			size_t alpn_len;
983     
>>>     CID 1641300:         Null pointer dereferences  (FORWARD_NULL)
>>>     Dereferencing null pointer "ctx->conn".
984     			ctx->conn->flags &= ~(CO_FL_SSL_WAIT_HS | CO_FL_WAIT_L6_CONN);
985     			if (!ssl_sock_get_alpn(ctx->conn, ctx, (const char **)&alpn, (int *)&alpn_len) ||
986     			    !quic_set_app_ops(qc, alpn, alpn_len)) {
987     				TRACE_ERROR("No negotiated ALPN", QUIC_EV_CONN_IO_CB, qc, &state);
988     				quic_set_tls_alert(qc, SSL_AD_NO_APPLICATION_PROTOCOL);
989     				goto err;

Additional Information

No response

Output of haproxy -vv

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    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