mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-02 07:15:44 +00:00
Fix a silly malloc bug in mrtrace.
This commit is contained in:
@@ -133,7 +133,7 @@ void trace_mr_statp_setup (res_state statp)
|
|||||||
if (trace_record ()) {
|
if (trace_record ()) {
|
||||||
trace_iov_t *iov;
|
trace_iov_t *iov;
|
||||||
iov = dmalloc ((statp -> nscount *
|
iov = dmalloc ((statp -> nscount *
|
||||||
sizeof (struct in_addr)), MDL);
|
sizeof (trace_iov_t)), MDL);
|
||||||
if (!iov) {
|
if (!iov) {
|
||||||
trace_stop ();
|
trace_stop ();
|
||||||
log_error ("No memory for statp iov.");
|
log_error ("No memory for statp iov.");
|
||||||
|
Reference in New Issue
Block a user