diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2019-05-17 15:47:46 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2019-07-02 10:21:06 +0800 |
commit | c1112b2d3dfb2c4102f73eea8198c4fe9ff50883 (patch) | |
tree | 4dcf655899e58f59b60ae034f8da6c8accd21923 /replay/replay-net.c | |
parent | 21c520d0c1ab64770f09f6fbf5952807e856e903 (diff) |
net: avoid using variable length array in net_client_init()
net_client_init() uses a variable length array to store the prefix
of 'ipv6-net' parameter (e.g. if ipv6-net=fec0::0/64, the prefix
is 'fec0::0').
This patch introduces g_strsplit() to split the 'ipv6-net' parameter,
so we can remove the variable length array.
Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'replay/replay-net.c')
0 files changed, 0 insertions, 0 deletions