summaryrefslogtreecommitdiffstats
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorpaul <paul>2003-06-06 23:24:55 +0000
committerpaul <paul>2003-06-06 23:24:55 +0000
commit31bbdb34f154026df9e4d07c0b441ddc8eff0cce (patch)
treec1485a4b0bb67c4933dff56c0435934e511e52d2 /lib/zclient.c
parentf6c19f9f4dbb31c3c0ff89165bb57cc60a68f708 (diff)
downloadquagga-31bbdb34f154026df9e4d07c0b441ddc8eff0cce.tar.bz2
quagga-31bbdb34f154026df9e4d07c0b441ddc8eff0cce.tar.xz
2003-06-07 Paul Jakma <paul@dishone.st>
* Revert Cougar's sort interface names patch, causes problems with enabling of interfaces for OSPF in ospfd.
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c5
1 files changed, 4 insertions, 1 deletions
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);