diff options
Diffstat (limited to 'lib/zclient.c')
-rw-r--r-- | lib/zclient.c | 5 |
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); |