mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 09:53:22 +00:00
004-07-13 David Wiggins <dwiggins@bbn.com
* kernel_socket.c (rtm_flag_dump): terminate buffer with '\0', not '0'. This is arguably not a security problem, since strlcat is used to copy to the buffer -gdt.
This commit is contained in:
parent
b779713177
commit
cced60dd5b
@ -1,3 +1,7 @@
|
|||||||
|
2004-07-13 David Wiggins <dwiggins@bbn.com
|
||||||
|
|
||||||
|
* kernel_socket.c (rtm_flag_dump): terminate buffer with '\0', not '0'.
|
||||||
|
|
||||||
2004-07-13 Hasso Tepper <hasso@estpak.ee>
|
2004-07-13 Hasso Tepper <hasso@estpak.ee>
|
||||||
|
|
||||||
* irdp_main.c: Add privilege change.
|
* irdp_main.c: Add privilege change.
|
||||||
|
@ -178,7 +178,7 @@ rtm_flag_dump (int flag)
|
|||||||
struct message *mes;
|
struct message *mes;
|
||||||
static char buf[BUFSIZ];
|
static char buf[BUFSIZ];
|
||||||
|
|
||||||
buf[0] = '0';
|
buf[0] = '\0';
|
||||||
for (mes = rtm_flag_str; mes->key != 0; mes++)
|
for (mes = rtm_flag_str; mes->key != 0; mes++)
|
||||||
{
|
{
|
||||||
if (mes->key & flag)
|
if (mes->key & flag)
|
||||||
|
Loading…
Reference in New Issue
Block a user