mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-09 06:04:56 +02:00
TEE: fix address copying bug
This commit is contained in:
@@ -59,7 +59,7 @@ static int tee_tg_parse(int c, char **argv, int invert, unsigned int *flags,
|
|||||||
exit_error(PARAMETER_PROBLEM,
|
exit_error(PARAMETER_PROBLEM,
|
||||||
"Invalid IP address %s", optarg);
|
"Invalid IP address %s", optarg);
|
||||||
|
|
||||||
memcpy(&info->gw, &ia, sizeof(ia));
|
memcpy(&info->gw, ia, sizeof(*ia));
|
||||||
*flags |= FLAG_GATEWAY;
|
*flags |= FLAG_GATEWAY;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user