durable_rules 0.34.16 → 0.34.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/librb/durable.rb +1 -1
  3. data/src/rules/net.c +5 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b436e3ac90a52d2d2f310249bebd391be920cb0
4
- data.tar.gz: 9aa9f813c445c04b244a299c16756d0506ce14c3
3
+ metadata.gz: 1f088b9135a5d4ad9a64d29156986df9307d40fc
4
+ data.tar.gz: 3fa59ec7a1b268240235aadcfe1ea91563afd156
5
5
  SHA512:
6
- metadata.gz: d5661c804871fe17aef0e7d203db9e74cf7ee72836e84c987cec9f5b505a7a9e26e0603fd0431421c7bd459d65dd57d2648958a81b5b912e5f462832da63924a
7
- data.tar.gz: 057dc26f3000b36c0f1bae7e7042cb15c0c0696ea0d99873640177b9c65f12cd64f6cb5ccbebf9365e24cdf26ad50ed236a2ad6d77ab8d0394fde5c9ad0c6759
6
+ metadata.gz: b3c5a66e5cdcc3c813985d221e6933cd63692eccfee45cbd1fab0bda5283d203bd1b26a62d4ebdda671cab3e138a7e79c14bfc72aa2392bacb5d173b829a0548
7
+ data.tar.gz: 49f9def662c46765994e89d35df408e20fc2eafe2d6650803403dc9b57e48652fe18e4533e9b77700987f28ac9d9f90df64d4d70c0fdd3741b40e466680a73cb
data/librb/durable.rb CHANGED
@@ -137,7 +137,7 @@ module Durable
137
137
  return Expression.new(@name, @left) & other
138
138
  end
139
139
 
140
- def refId(sid)
140
+ def ref_id(sid)
141
141
  Arithmetic.new @name, @left, sid
142
142
  end
143
143
 
data/src/rules/net.c CHANGED
@@ -2876,6 +2876,11 @@ unsigned int peekAction(ruleset *tree, void **bindingContext, redisReply **reply
2876
2876
  }
2877
2877
 
2878
2878
  if ((*reply)->type == REDIS_REPLY_ARRAY) {
2879
+ if ((*reply)->elements < 4) {
2880
+ freeReplyObject(*reply);
2881
+ return ERR_REDIS_ERROR;
2882
+ }
2883
+
2879
2884
  *bindingContext = currentBinding;
2880
2885
  return RULES_OK;
2881
2886
  } else {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: durable_rules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.16
4
+ version: 0.34.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesus Ruiz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-22 00:00:00.000000000 Z
11
+ date: 2017-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake