system-linux: fix a typo in gre tunnel data parsing logic
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 16 Oct 2018 14:16:49 +0000 (16:16 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 16 Oct 2018 14:17:58 +0000 (16:17 +0200)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
system-linux.c

index 9401cd938ca7963d581e3966df8e4dd99731ee8b..8cfad3c848e6a415a4b4a39985b2bfe4ed588279 100644 (file)
@@ -2540,7 +2540,7 @@ static int system_add_gre_tunnel(const char *name, const char *kind,
                                iflags |= GRE_SEQ;
                }
 
-               if ((cur = tb[GRE_DATA_OSEQNO])) {
+               if ((cur = tb_data[GRE_DATA_OSEQNO])) {
                        if (blobmsg_get_bool(cur))
                                oflags |= GRE_SEQ;
                }