diff options
| author | 2006-07-16 19:33:43 +0000 | |
|---|---|---|
| committer | 2006-07-16 19:33:43 +0000 | |
| commit | c4a0aedc4b1731f05430f1a79e590cfa6ae52c04 (patch) | |
| tree | 573e6d4cb51e8106cf64e3f1086745c017b19f17 /src/dnsqueue.cpp | |
| parent | Remove a non-essential function call (diff) | |
Safety check against a random segfault
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4423 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dnsqueue.cpp')
| -rw-r--r-- | src/dnsqueue.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index dff13def5..31356a84f 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -192,7 +192,8 @@ public: if (resolver2.GetFD() != -1) { dnslist[resolver2.GetFD()] = this; - user_fd_to_dns[usr->fd] = this; + if (usr) + user_fd_to_dns[usr->fd] = this; } } } |
