equal
deleted
inserted
replaced
180 log_debug_p(LOG, "BPQBlock::initialise: b->source() != NULL"); |
180 log_debug_p(LOG, "BPQBlock::initialise: b->source() != NULL"); |
181 } else { |
181 } else { |
182 log_debug_p(LOG, "BPQBlock::initialise: b->source() == NULL"); |
182 log_debug_p(LOG, "BPQBlock::initialise: b->source() == NULL"); |
183 block = b; |
183 block = b; |
184 } |
184 } |
|
185 |
185 ///////////////////////////////////////////////////// |
186 ///////////////////////////////////////////////////// |
186 ASSERT ( block != NULL ); |
187 ASSERT ( block != NULL ); |
187 |
188 |
188 log_debug_p(LOG, "BPQBlock::initialise: block != NULL"); |
189 log_debug_p(LOG, "BPQBlock::initialise: block != NULL"); |
189 |
190 |
226 if ( i < len ) { |
227 if ( i < len ) { |
227 matching_rule_ = (u_int) buf[i++]; |
228 matching_rule_ = (u_int) buf[i++]; |
228 log_debug_p(LOG, "BPQBlock::initialise: matching rule = %u", matching_rule_); |
229 log_debug_p(LOG, "BPQBlock::initialise: matching rule = %u", matching_rule_); |
229 } |
230 } |
230 |
231 |
|
232 if ( b->source() != NULL ) { |
|
233 log_debug_p(LOG, "BPQBlock::initialise: b->source() != NULL and OK :)"); |
|
234 } |
|
235 |
231 // Decode the SDNV-encoded query length. Note that we need to know the length of the |
236 // Decode the SDNV-encoded query length. Note that we need to know the length of the |
232 // of the encoded value and provide some pointers to the encoded value along with |
237 // of the encoded value and provide some pointers to the encoded value along with |
233 // where we want the decoded value (in this case, query_len_). |
238 // where we want the decoded value (in this case, query_len_). |
234 if ( i < len && |
239 if ( i < len && |
235 (decoding_len = SDNV::decode(&(buf[i]), len - i, &query_len_)) >= 0 ) { |
240 (decoding_len = SDNV::decode(&(buf[i]), len - i, &query_len_)) >= 0 ) { |