Developer Area

Show
Ignore:
Timestamp:
11/27/09 09:51:15 (4 months ago)
Author:
jonmaycock
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • apps/outlook/branches/1.5/DotTelSystem/DNS/DNSInputStream.cs

    r577 r588  
    463463                return null; 
    464464            } 
     465              try 
     466            { 
     467                while (this.Position < end) 
     468                { 
     469                    txtStr = txtStr + this.ReadString(); 
     470                } 
     471            } 
     472            catch (EndOfStreamException) { } 
    465473            return new DNSTxtResourceRecord(ttl, txtStr); 
    466474                } 
     
    521529        private DNSNInfoResourceRecord ReadNInfo(long rrTTL, int rrDataLen) 
    522530        { 
    523             string txtStr = ReadString(); 
     531            long end = this.Position + rrDataLen; 
     532            string txtStr = ""; 
     533            try 
     534            { 
     535                while (this.Position < end) 
     536                { 
     537                    txtStr = txtStr + this.ReadString(); 
     538                } 
     539            } 
     540            catch (EndOfStreamException) { } 
    524541            if (txtStr.Trim() == DNSStructuredKeywordsTxtResourceRecord.TXTTYPE 
    525542                            || txtStr.Trim() == DNSTxtServiceMessageResourceRecord.TXTTYPE) 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us