Squashed commit of the following:
commit
c3e88212ff666701b5aca3cbc96b557fa37aa682
Author: Shawn Routhier <sar@isc.org>
Date: Wed Aug 24 11:33:31 2016 -0700
[rt42984] Clean up some memory references
Conflicts:
RELNOTES
interfaces will only accept and forward BOOTP requests.
[ISC-Bugs #41547]
+- Clean up some memory references in the vendor-class construct.
+ [ISC-Bugs #42984]
+
Changes since 4.1-ESV-R13b1
- None
data.data = &data.buffer -> data [0];
data.terminated = 1;
- tname = type ? "implicit-vendor-class" : "implicit-user-class";
+ tname = (type == CLASS_TYPE_VENDOR) ?
+ "implicit-vendor-class" : "implicit-user-class";
+
} else if (type == CLASS_TYPE_CLASS) {
tname = val;
} else {
name = dmalloc (strlen (tname) + 1, MDL);
if (!name)
log_fatal ("No memory for class name %s.", tname);
- strcpy (name, val);
+ strcpy (name, tname);
} else
name = (char *)0;