From 592c8148981d196a7bda2f1b85a63943fd0cfdf2 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 6 Jun 2003 23:24:55 +0000 Subject: 2003-06-07 Paul Jakma * Revert Cougar's sort interface names patch, causes problems with enabling of interfaces for OSPF in ospfd. --- lib/zclient.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/zclient.c') diff --git a/lib/zclient.c b/lib/zclient.c index f6be5138..bb7747fa 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -555,7 +555,10 @@ zebra_interface_add_read (struct stream *s) /* If such interface does not exist, make new one. */ if (! ifp) - ifp = if_create (ifname_tmp, IFNAMSIZ); + { + ifp = if_create (); + strncpy (ifp->name, ifname_tmp, IFNAMSIZ); + } /* Read interface's index. */ ifp->ifindex = stream_getl (s); -- cgit v1.2.1