~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to src/DHTMessageTracker.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2011-11-08 20:25:08 UTC
  • mfrom: (2.5.7 sid)
  • Revision ID: package-import@ubuntu.com-20111108202508-scfph8rj6tz0cckk
Tags: 1.13.0-1
* New upstream version:
  + Depends on libgcrypt11 (>= 1.5.0-3) (Closes: #642989)

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
DHTMessageTracker::messageArrived
66
66
(const Dict* dict, const std::string& ipaddr, uint16_t port)
67
67
{
68
 
  const String* tid = asString(dict->get(DHTMessage::T));
 
68
  const String* tid = downcast<String>(dict->get(DHTMessage::T));
69
69
  if(!tid) {
70
70
    throw DL_ABORT_EX(fmt("Malformed DHT message. From:%s:%u",
71
71
                          ipaddr.c_str(), port));