system-linux: fix 6rd regression
authorHans Dedecker <dedeckeh@gmail.com>
Sat, 27 May 2017 11:07:33 +0000 (13:07 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Sat, 27 May 2017 11:09:06 +0000 (13:09 +0200)
Fix 6rd regression introduced in commit 7573880ac042c6e5c8d48b1ad83d357b5e02743b

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
system-linux.c

index 0ac4ae626c10307bc728a5019be9bd1b0b5d60db..3605d9bff6bbe1de158e663f836d1b9fab5b8d69 100644 (file)
@@ -2737,7 +2737,7 @@ static int system_add_sit_tunnel(const char *name, const unsigned int link, stru
                        p6.prefixlen = mask;
                }
 
-               if ((cur = tb[SIXRD_DATA_RELAY_PREFIX])) {
+               if ((cur = tb_data[SIXRD_DATA_RELAY_PREFIX])) {
                        if (!parse_ip_and_netmask(AF_INET, blobmsg_data(cur),
                                                &p6.relay_prefix, &mask) || mask > 32) {
                                ret = -EINVAL;