]> sourceware.org Git - newlib-cygwin.git/commitdiff
* net.cc (dup_ent): Avoid dereferencing a null pointer in a debug_printf.
authorChristopher Faylor <me@cgf.cx>
Wed, 9 Mar 2005 20:56:44 +0000 (20:56 +0000)
committerChristopher Faylor <me@cgf.cx>
Wed, 9 Mar 2005 20:56:44 +0000 (20:56 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/net.cc

index 9c2f7bcae9aa186fbe49652168b40f92b379fa12..112e84c7d37e7049594e4fcfa808b75f22a9edf9 100644 (file)
@@ -1,3 +1,7 @@
+2005-03-09  Christopher Faylor  <cgf@timesys.com>
+
+       * net.cc (dup_ent): Avoid dereferencing a null pointer in a debug_printf.
+
 2005-03-09  Christopher Faylor  <cgf@timesys.com>
 
        * path.cc (path_conv::check): Treat ENOSHARE similarly to ENOENT when
index 3fee9eb91fcde3cee803a428cc64a419a3a8063a..ed52807d60482c2bdda36e3cd4323c9a4cbe747a 100644 (file)
@@ -389,7 +389,7 @@ dup_ent (void *old, void *src0, struct_type type)
   if (old)
     {
       debug_printf ("freeing old %sent structure \"%s\" %p\n", entnames[type],
-                   ((unionent *) old)->name, old);
+                   old ? ((unionent *) old)->name : "<null!>", old);
       free (old);
     }
 
This page took 0.033136 seconds and 5 git commands to generate.