diff options
| author | Renato Westphal <renato@openbsd.org> | 2018-03-12 22:43:05 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-12 22:43:05 -0300 |
| commit | ecef81cea9f2f1df598e4ce8e2e9ff76af55c4dd (patch) | |
| tree | ee3fcae8e7b085a6938c2f404beead8b15da64e3 /zebra/zebra_rnh.c | |
| parent | fac615f43b18bf88ccf78d8b0c20046f73f046a4 (diff) | |
| parent | 41903a407407bcdf73dbd471dea3f53d2d056b0b (diff) | |
Merge pull request #1828 from qlyoung/zapi-cleanup
zebra: giant zapi cleanup
Diffstat (limited to 'zebra/zebra_rnh.c')
| -rw-r--r-- | zebra/zebra_rnh.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c index dd3fe17702..c9fb782ba6 100644 --- a/zebra/zebra_rnh.c +++ b/zebra/zebra_rnh.c @@ -995,8 +995,7 @@ static int send_client(struct rnh *rnh, struct zserv *client, rnh_type_t type, re = rnh->state; /* Get output stream. */ - s = client->obuf; - stream_reset(s); + s = stream_new(ZEBRA_MAX_PACKET_SIZ); zclient_create_header(s, cmd, vrf_id); @@ -1063,7 +1062,7 @@ static int send_client(struct rnh *rnh, struct zserv *client, rnh_type_t type, client->nh_last_upd_time = monotime(NULL); client->last_write_cmd = cmd; - return zebra_server_send_message(client); + return zebra_server_send_message(client, s); } static void print_nh(struct nexthop *nexthop, struct vty *vty) |
