mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Bring two wayward memory allocation failure messages in line with
those featured in the rest of the code.
This commit is contained in:
parent
6745299365
commit
daae13874a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49102
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)from: inetd.c 8.4 (Berkeley) 4/13/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: inetd.c,v 1.68 1999/07/22 16:29:48 sheldonh Exp $";
|
||||
"$Id: inetd.c,v 1.69 1999/07/23 14:45:21 des Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -1057,7 +1057,7 @@ enter(cp)
|
||||
|
||||
sep = (struct servtab *)malloc(sizeof (*sep));
|
||||
if (sep == (struct servtab *)0) {
|
||||
syslog(LOG_ERR, "Out of memory.");
|
||||
syslog(LOG_ERR, "malloc: %m");
|
||||
exit(EX_OSERR);
|
||||
}
|
||||
*sep = *cp;
|
||||
@ -1348,7 +1348,7 @@ getconfigent()
|
||||
if (sep->se_maxchild) {
|
||||
sep->se_pids = malloc(sep->se_maxchild * sizeof(*sep->se_pids));
|
||||
if (sep->se_pids == NULL) {
|
||||
syslog(LOG_ERR, "Out of memory.");
|
||||
syslog(LOG_ERR, "malloc: %m");
|
||||
exit(EX_OSERR);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user