mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
properly initialize buffer when printing loaded plugins.
This commit is contained in:
parent
a9f56adb59
commit
433c0968e4
@ -318,6 +318,7 @@ static void print_plugins()
|
||||
int len = 0;
|
||||
enumerator_t *enumerator;
|
||||
|
||||
buf[0] = '\0';
|
||||
enumerator = lib->plugins->create_plugin_enumerator(lib->plugins);
|
||||
while (len < sizeof(buf) && enumerator->enumerate(enumerator, &plugin))
|
||||
{
|
||||
|
@ -230,6 +230,7 @@ static void print_plugins()
|
||||
int len = 0;
|
||||
enumerator_t *enumerator;
|
||||
|
||||
buf[0] = '\0';
|
||||
enumerator = lib->plugins->create_plugin_enumerator(lib->plugins);
|
||||
while (len < BUF_LEN && enumerator->enumerate(enumerator, &plugin))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user