diff options
Diffstat (limited to 'src/namestore/plugin_namestore_postgres.c')
-rw-r--r-- | src/namestore/plugin_namestore_postgres.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c index a9c19d517..e38fcafb1 100644 --- a/src/namestore/plugin_namestore_postgres.c +++ b/src/namestore/plugin_namestore_postgres.c | |||
@@ -296,6 +296,8 @@ parse_result_call_iterator (void *cls, | |||
296 | { | 296 | { |
297 | struct ParserContext *pc = cls; | 297 | struct ParserContext *pc = cls; |
298 | 298 | ||
299 | if (NULL == pc->iter) | ||
300 | return; /* no need to do more work */ | ||
299 | for (unsigned int i=0;i<num_results;i++) | 301 | for (unsigned int i=0;i<num_results;i++) |
300 | { | 302 | { |
301 | void *data; | 303 | void *data; |