Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/dhcp/omapip Pull up revision 1.2 (requested by...



details:   https://anonhg.NetBSD.org/src/rev/dd726b0eef9f
branches:  netbsd-1-5
changeset: 491278:dd726b0eef9f
user:      he <he%NetBSD.org@localhost>
date:      Sat Apr 21 19:50:32 2001 +0000

description:
Pull up revision 1.2 (requested by mellon):
  Fix a memory smash that will occur when tracing if DNS updates are
  being done.

diffstat:

 usr.sbin/dhcp/omapip/mrtrace.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8bb6d6704055 -r dd726b0eef9f usr.sbin/dhcp/omapip/mrtrace.c
--- a/usr.sbin/dhcp/omapip/mrtrace.c    Sat Apr 21 19:49:45 2001 +0000
+++ b/usr.sbin/dhcp/omapip/mrtrace.c    Sat Apr 21 19:50:32 2001 +0000
@@ -133,7 +133,7 @@
        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.");



Home | Main Index | Thread Index | Old Index