Package: wpasupplicant
Version: 2:2.6-21
Severity: minor

In wpa_supplicant/wpa_cli.c, wpa_cli_open_connection is expected to
set errno (at least in case of error), as it is used in

                if (!global &&
                    wpa_cli_open_connection(ctrl_ifname, 0) < 0) {
                        fprintf(stderr, "Failed to connect to non-global "
                                "ctrl_ifname: %s  error: %s\n",
                                ctrl_ifname ? ctrl_ifname : "(nil)",
                                strerror(errno));
                        return -1;
                }

Thus wpa_cli_open_connection should start by setting errno to 0,
to make sure that one does not get an error message that comes
from a previous, unrelated error. Currently this is what would
happen when ifname == NULL.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wpasupplicant depends on:
ii  adduser           3.118
ii  libc6             2.28-3
ii  libdbus-1-3       1.12.12-1
ii  libnl-3-200       3.4.0-1
ii  libnl-genl-3-200  3.4.0-1
ii  libpcsclite1      1.8.24-1
ii  libreadline7      7.0-5
ii  libssl1.1         1.1.1a-1
ii  lsb-base          10.2018112800

wpasupplicant recommends no packages.

Versions of packages wpasupplicant suggests:
pn  libengine-pkcs11-openssl  <none>
pn  wpagui                    <none>

-- no debconf information

Reply via email to