diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2016-11-29 22:01:23 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2016-11-29 22:01:23 -0800 |
commit | accf0ca336a82397063fb262c64a01d2a8947ca7 (patch) | |
tree | cb592c869e4efc25693c6d22f6e136f1eb3533d3 | |
parent | fd70eebe454d74e6133caf1254d80a4efda2490a (diff) |
arpa/nameser.h, unlike nameser.h, uses NS_ prefix.
-rw-r--r-- | apt-pkg/contrib/srvrec.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/srvrec.cc b/apt-pkg/contrib/srvrec.cc index 327e59937..cafee1acf 100644 --- a/apt-pkg/contrib/srvrec.cc +++ b/apt-pkg/contrib/srvrec.cc @@ -50,7 +50,7 @@ bool GetSrvRecords(std::string host, int port, std::vector<SrvRec> &Result) bool GetSrvRecords(std::string name, std::vector<SrvRec> &Result) { - unsigned char answer[PACKETSZ]; + unsigned char answer[NS_PACKETSZ]; int answer_len, compressed_name_len; int answer_count; @@ -77,7 +77,7 @@ bool GetSrvRecords(std::string name, std::vector<SrvRec> &Result) return _error->Warning("dn_skipname failed %i", compressed_name_len); // pt points to the first answer record, go over all of them now - unsigned char *pt = answer+sizeof(HEADER)+compressed_name_len+QFIXEDSZ; + unsigned char *pt = answer+sizeof(HEADER)+compressed_name_len+NS_QFIXEDSZ; while ((int)Result.size() < answer_count && pt < answer+answer_len) { u_int16_t type, klass, priority, weight, port, dlen; |