Fix a dig segfault due to bad linked list usage [RT #37591]
The crash (#37591) seems to happen because the query is taken out of lookup->q(query->link), and put on lookup->connecting(query->clink). The code checks query->link where it is detached (-1 in next pointer). However, there's no need to call send_tcp_connect() there as the queries are already connecting at that point.
Showing with 5 additions and 1 deletion