diff options
author | gdt <gdt> | 2004-07-13 16:45:54 +0000 |
---|---|---|
committer | gdt <gdt> | 2004-07-13 16:45:54 +0000 |
commit | cced60dd5bf297d16ec61fad75a122deaeca9e20 (patch) | |
tree | 3d514670fdf50b589327f1c78119b2654430dd74 | |
parent | b77971317724a97b72a8566b3a54d36ef7c76a07 (diff) |
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.
-rw-r--r-- | zebra/ChangeLog | 4 | ||||
-rw-r--r-- | zebra/kernel_socket.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog index acf2f8cb..5a0ff8c6 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -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> * irdp_main.c: Add privilege change. diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 20c6cc83..27b88957 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -178,7 +178,7 @@ rtm_flag_dump (int flag) struct message *mes; static char buf[BUFSIZ]; - buf[0] = '0'; + buf[0] = '\0'; for (mes = rtm_flag_str; mes->key != 0; mes++) { if (mes->key & flag) |