mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 11:30:55 +00:00
zebra: Fix free'd memory write
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
0527bd80c9
commit
4b21f878d1
@ -92,6 +92,7 @@ zserv_flush_data(struct thread *thread)
|
||||
zlog_warn("%s: buffer_flush_available failed on zserv client fd %d, "
|
||||
"closing", __func__, client->sock);
|
||||
zebra_client_close(client);
|
||||
client = NULL;
|
||||
break;
|
||||
case BUFFER_PENDING:
|
||||
client->t_write = thread_add_write(zebrad.master, zserv_flush_data,
|
||||
@ -101,7 +102,8 @@ zserv_flush_data(struct thread *thread)
|
||||
break;
|
||||
}
|
||||
|
||||
client->last_write_time = monotime(NULL);
|
||||
if (client)
|
||||
client->last_write_time = monotime(NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user