Skip to content
Snippets Groups Projects
Commit a8c3f227 authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Bug in decode_int() caused improper parsing of SOA replies.

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.61
parent 03a3a994
Branches
Tags
No related merge requests found
// Not yet finished -- Fredrik Hubinette
// RFC 1035
//! $Id: DNS.pmod,v 1.60 2001/09/17 21:36:45 grubba Exp $
//! $Id: DNS.pmod,v 1.61 2002/01/13 18:44:33 marcus Exp $
#pike __REAL_VERSION__
......@@ -214,8 +214,8 @@ class protocol
int decode_int(string s, array(int) next)
{
sscanf(s[next[0]..next[0]+1],"%2c",int ret);
next[0]+=2;
sscanf(s[next[0]..next[0]+3],"%4c",int ret);
next[0]+=4;
return ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment