Skip to content

[BUG / possible BUG] Unused variable in starttls_io() #3154

Description

@dcooper16

#1610 renamed $waitsleep to $nr_waits in starttls_io(). However, $waitsleep still appears in one line:

[[ -n "$3" ]] && waitsleep=$3

The result is that $3 is ignored.

I thought the solution would be to just replace waitsleep with nr_waits on this line. However, the third parameter to starttls_io() is always 1, and setting $nr_waits to 1 would result in the loop never running and starttls_io() always returning 1. (Prior to #1610 $waitsleep was always set to 1 and so the loop never ran, but starttls_io() would always return 0.)

Before you open an issue please check which version you are running and whether it is the latest in stable / dev branch

  • I am running version from the git repo :
  • I am running: 3.2 and 3.3dev
  • Different version, check for updates here:

Before you open an issue please consult the FAQ and check whether this is a known problem by searching the issues

  • Is related to ...
  • couldn't find anything

Command line to reproduce (or docker command)

N/A

Expected behavior

N/A

Your system (please complete the following information):

N/A

AI section

  • I found a bug using LLM version:
  • It was just me

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions