Changeset c230bc3 in rtems


Ignore:
Timestamp:
05/20/05 19:19:17 (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
da56a02
Parents:
c3f2683
Message:

2005-05-20 Sergei Organov <osv@…>

PR 749/networking

  • rtems/rtems_showroute.c: Avoid NULL dereference.
Location:
cpukit/libnetworking
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/ChangeLog

    rc3f2683 rc230bc3  
     12005-05-20      Sergei Organov  <osv@topconrd.ru>
     2
     3        PR 749/networking
     4        * rtems/rtems_showroute.c: Avoid NULL dereference.
     5
    162004-09-17      Till Strauman <strauman@slac.stanford.edu>
    27
  • cpukit/libnetworking/rtems/rtems_showroute.c

    rc3f2683 rc230bc3  
    129129        r->expire = rt->rt_rmx.rmx_expire;
    130130        ifp = rt->rt_ifp;
    131         strncpy (r->ifname, ifp->if_name, sizeof r->ifname);
     131        strncpy (r->ifname, (ifp->if_name ? ifp->if_name : ""), sizeof r->ifname);
    132132        r->ifunit = ifp->if_unit;
    133133        return 0;
Note: See TracChangeset for help on using the changeset viewer.