Commit be2c3142 authored by Stephen Hemminger's avatar Stephen Hemminger

veth: fix uninitialized arguments

Based on patch by Sergey Popovich <popovich_sergei@mail.ru>
This fixes crash when ip-link(8) invoced with command:

  ip link add dev veth1a type veth peer
parent d2468da0
......@@ -26,7 +26,10 @@ static void usage(void)
static int veth_parse_opt(struct link_util *lu, int argc, char **argv,
struct nlmsghdr *hdr)
{
char *name, *type, *link, *dev;
char *dev = NULL;
char *name = NULL;
char *link = NULL;
char *type = NULL;
int err, len;
struct rtattr * data;
int group;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment