Changeset 5c1af4c in rtems


Ignore:
Timestamp:
May 20, 2005, 7:18:55 PM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
266a5c92
Parents:
80f2885b
Message:

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

PR 749/networking

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

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r80f2885b r5c1af4c  
     12005-05-20      Sergei Organov  <osv@topconrd.ru>
     2
     3        PR 749/networking
     4        * libnetworking/rtems/rtems_showroute.c: Avoid NULL dereference.
     5
    162005-05-14  Sergei Organov  <osv@topconrd.ru>
    27
  • cpukit/libnetworking/rtems/rtems_showroute.c

    r80f2885b r5c1af4c  
    133133        r->expire = rt->rt_rmx.rmx_expire;
    134134        ifp = rt->rt_ifp;
    135         strncpy (r->ifname, ifp->if_name, sizeof r->ifname);
     135        strncpy (r->ifname, (ifp->if_name ? ifp->if_name : ""), sizeof r->ifname);
    136136        r->ifunit = ifp->if_unit;
    137137        return 0;
Note: See TracChangeset for help on using the changeset viewer.