/soc/2012/michael/android: e08d85945907: Fixed dns srv record re...
Michael Zangl
michael at soc.pidgin.im
Tue Aug 7 05:59:27 EDT 2012
Changeset: e08d859459071d97ddb666a280441a427977a389
Author: Michael Zangl <michael at soc.pidgin.im>
Date: 2012-08-06 18:09 +0200
Branch: soc.2012.android
URL: http://hg.pidgin.im/soc/2012/michael/android/rev/e08d85945907
Description:
Fixed dns srv record reading, because the lentgh field was not read.
diffstat:
android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/dns/DnsResolver.java | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff --git a/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/dns/DnsResolver.java b/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/dns/DnsResolver.java
--- a/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/dns/DnsResolver.java
+++ b/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/dns/DnsResolver.java
@@ -82,6 +82,7 @@ public abstract class DnsResolver<T> {
private List<T> readQueryResponse(InputStream inputStream)
throws DnsExeption {
try {
+ read16(inputStream); /* length */
int tid = read16(inputStream);
if (tid != FAKE_TID) {
throw new DnsExeption("Unexpected tid.");
More information about the Commits
mailing list