}
if (!ret && inlen > 0) {
- /* Skip to the next valid character in input */
+ /* Skip to the next valid character in lua_dns_resolver_resolve_commoninput */
while (inlen > 0 && base64_table_dec[*c] >= 254) {
c ++;
inlen --;
if (ret) {
cbdata->s = session;
cbdata->item = rspamd_symbols_cache_get_cur_item (task);
- rspamd_symcache_item_async_inc (task, cbdata->item);
+
+ if (cbdata->item) {
+ rspamd_symcache_item_async_inc (task, cbdata->item);
+ }
/* callback was set up */
lua_pushboolean (L, TRUE);
} else {