This is straight-forward given the new generic num_matches
counter which was introduced in the previous patch.
.action = cat_blob
};
for_each_matching_row(&pmd);
.action = cat_blob
};
for_each_matching_row(&pmd);
+ if (pmd.num_matches == 0) {
+ char err_msg[] = "no matches\n";
+ pass_buffer_as_shm(err_msg, sizeof(err_msg), &fd);
+ }
}
static int com_catblob(callback_function *f, struct stream_cipher_context *scc, int argc,
}
static int com_catblob(callback_function *f, struct stream_cipher_context *scc, int argc,