Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 571
    • Issues 571
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 110
    • Merge requests 110
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • BINDBIND
  • Issues
  • #2612
Closed
Open
Issue created Apr 06, 2021 by Michal Nowak@mnowakOwner

CID 330954: Possible Control flow issues in lib/isc/netmgr/tlsstream.c

Coverity Scan identified the following issue on main:

*** CID 330954:  Possible Control flow issues  (DEADCODE)
/lib/isc/netmgr/tlsstream.c: 423 in tls_do_bio()
417     		return;
418     	}
419     
420     	switch (tls_status) {
421     	case SSL_ERROR_NONE:
422     	case SSL_ERROR_ZERO_RETURN:
>>>     CID 330954:  Possible Control flow issues  (DEADCODE)
>>>     Execution cannot reach the expression "received_shutdown" inside this statement: "if (sent_shutdown && receiv...".
423     		if (sent_shutdown && received_shutdown) {
424     			/* clean shutdown */
425     			isc_nm_cancelread(sock->outerhandle);
426     			isc__nm_tls_close(sock);
427     		};
428     		return;

This likely appeared with 11ed7aac.

Assignee
Assign to
Time tracking