NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/53015: dhcpd fails to start in -current

The following reply was made to PR bin/53015; it has been noted by GNATS.

From: Patrick Welche <>
Subject: Re: bin/53015: dhcpd fails to start in -current
Date: Mon, 12 Feb 2018 16:23:07 +0000

     86          if (resolved == NULL) {
     87                  fres = resolved = malloc(MAXPATHLEN);
     88                  if (resolved == NULL)
     89                          return NULL;
     90          } else
     91                  fres = NULL;
 dhcpd does call realpath with resolved == NULL. I suppose if the malloc
 fails (why?), realpath would return NULL without setting errno.

Home | Main Index | Thread Index | Old Index