]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix a silly malloc bug in mrtrace.
authorTed Lemon <source@isc.org>
Fri, 30 Mar 2001 05:21:58 +0000 (05:21 +0000)
committerTed Lemon <source@isc.org>
Fri, 30 Mar 2001 05:21:58 +0000 (05:21 +0000)
omapip/mrtrace.c

index 0b1fc97ce4f4544d07df2cb7d8cf258b4eaf3264..0c18003c4405f4c16cb50f08ebaec1527731ff73 100644 (file)
@@ -133,7 +133,7 @@ void trace_mr_statp_setup (res_state statp)
        if (trace_record ()) {
                trace_iov_t *iov;
                iov = dmalloc ((statp -> nscount *
-                               sizeof (struct in_addr)), MDL);
+                               sizeof (trace_iov_t)), MDL);
                if (!iov) {
                        trace_stop ();
                        log_error ("No memory for statp iov.");