Project

General

Profile

Actions

Bug #15492

open

libwrap: the comparison will always evaluate as 'false'

Added by Toomas Soome about 1 year ago. Updated about 1 year ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Build error with gcc 12:

    ../hosts_access.c: In function 'host_match':
    ../hosts_access.c:301:32: error: the comparison will always evaluate as 'false' for the address of 'addr' will never be NULL [-Werror=address]
      301 |                 if (host->addr == NULL ||
          |                                ^~
    In file included from ../hosts_access.c:55:
    ../tcpd.h:95:13: note: 'addr' declared here
       95 |     char    addr[STRING_LENGTH];        /* access via eval_hostaddr(host) */
          |             ^~~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk about 1 year ago

  • Gerrit CR set to 2723
Actions

Also available in: Atom PDF