at TDS Telecom for reporting this issue.
[ISC-Bugs #35378]
+ - Added error logging to two memory allocation failure checks. Thanks to Bill
+ Parker (wp02855 at gmail dot com) for reporting the issue.
+ [ISC-Bugs #41185]
+
Changes since 4.1-ESV-R14b1
- None
val = dmalloc (strlen (prefix) + strlen (name) + 1 /* = */ +
len + sizeof *val, MDL);
- if (!val)
+ if (!val) {
+ log_error ("client_envadd: cannot allocate space for variable");
return;
+ }
+
s = val -> string;
strcpy (s, prefix);
strcat (s, name);
va_start (list, fmt);
vsnprintf (s, len + 1, fmt, list);
va_end (list);
- } else
+ } else {
strcpy (s, spbuf);
+ }
+
val -> next = client -> env;
client -> env = val;
client -> envc++;
Find and identify the network interfaces. */
/*
- * Copyright (c) 2013-2016 by Internet Systems Consortium, Inc. ("ISC")
- * Copyright (c) 2004-2009,2011 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2004-2017 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1995-2003 by Internet Software Consortium
*
* Permission to use, copy, modify, and distribute this software for any
delta = tptr -> index - interface_max + 10;
vec = dmalloc ((interface_max + delta) *
sizeof (struct interface_info *), MDL);
- if (!vec)
+ if (!vec) {
+ log_error ("interface_stash: allocation failed ");
return;
+ }
+
memset (&vec [interface_max], 0,
(sizeof (struct interface_info *)) * delta);
interface_max += delta;
dfree (interface_vector, MDL);
}
interface_vector = vec;
+
}
+
interface_reference (&interface_vector [tptr -> index], tptr, MDL);
if (tptr -> index >= interface_count)
interface_count = tptr -> index + 1;