]> source.dussan.org Git - rspamd.git/commitdiff
Fix if-else logic.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Nov 2013 18:16:35 +0000 (18:16 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Nov 2013 18:16:35 +0000 (18:16 +0000)
src/lua/lua_dns.c

index dedadeae5a84c7cfed1db0514f098de25d55b0a8..c56ff4548f1c8eac861c8ea1f0a7803f4716debb 100644 (file)
@@ -92,7 +92,7 @@ lua_dns_callback (struct rspamd_dns_reply *reply, gpointer arg)
                        }
                        lua_pushnil (cd->L);
                }
-               if (reply->type == DNS_REQUEST_AAA) {
+               else if (reply->type == DNS_REQUEST_AAA) {
 
                        lua_newtable (cd->L);
                        cur = reply->elements;