Skip to content

Commit

Permalink
Safety check against a random segfault
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4423 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
braindigitalis committed Jul 16, 2006
1 parent 9d0914b commit c4a0aed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dnsqueue.cpp
Expand Up @@ -192,7 +192,8 @@ class Lookup {
if (resolver2.GetFD() != -1)
{
dnslist[resolver2.GetFD()] = this;
user_fd_to_dns[usr->fd] = this;
if (usr)
user_fd_to_dns[usr->fd] = this;
}
}
}
Expand Down

0 comments on commit c4a0aed

Please sign in to comment.