diff options
author | Patrick McHardy <kaber@trash.net> | 2012-12-27 15:16:25 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2013-01-04 15:40:50 +0100 |
commit | 7d4df49eea9fb295f60be9db7d690d7cfe253abc (patch) | |
tree | 65b4da223f00d1023043b902aec227651067eeb3 | |
parent | 13e060276c2bf164541308ad1f9e7c4c77d679bb (diff) |
netlink_delinearize: don't reset source register after read
Range expression use a single load and two comparisons. Don't reset the
source register in netlink_delinearize when reading it.
Fixes: "Relational expression has no left hand side" for range (x-y)
expressions.
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | src/netlink_delinearize.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c index 4ecf4f57..50672b98 100644 --- a/src/netlink_delinearize.c +++ b/src/netlink_delinearize.c @@ -64,7 +64,6 @@ static struct expr *netlink_get_register(struct netlink_parse_ctx *ctx, } expr = ctx->registers[reg]; - ctx->registers[reg] = NULL; return expr; } |