Skip to content

Commit

Permalink
geobackend: fix possible nullptr deref
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha authored and mind04 committed Dec 7, 2013
1 parent 3506cc6 commit 7593c40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/geobackend/geobackend.cc
Expand Up @@ -201,8 +201,9 @@ void GeoBackend::answerGeoRecord(const QType &qtype, const string &qdomain, DNSP
fillGeoResourceRecord(qdomain, target, rr);

L << Logger::Debug << logprefix << "Serving " << qdomain << " "
<< rr->qtype.getName() << " " << target << " to " << p->getRemote()
<< " (" << isocode << ")" << endl;
<< rr->qtype.getName() << " " << target << " to "
<< (p != NULL ? p->getRemote() : "(unknown)")
<< " (" << isocode << ")" << endl;

answers.push_back(rr);
}
Expand Down

0 comments on commit 7593c40

Please sign in to comment.