separate the PSK IDs by spaces
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 6 Aug 2007 11:52:21 +0000 (11:52 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 6 Aug 2007 11:52:21 +0000 (11:52 -0000)
src/pluto/keys.c

index 2113f13..144b722 100644 (file)
@@ -792,6 +792,10 @@ log_psk(secret_t *s)
                n = BUF_LEN - 1;
                break;
            }
+           else if (n < BUF_LEN - 1)
+           {
+               n += snprintf(buf + n, BUF_LEN - n, " ");
+           }
            id_list = id_list->next;
        }
        while (id_list);