From 81f94aa0f1209d5643a1dba9f3ce99b164ce2df5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philipp=20T=C3=B6lke?= Date: Tue, 5 Oct 2010 18:20:16 +0000 Subject: [PATCH] add clarifying comment to a magic number --- src/vpn/gnunet-vpn-pretty-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vpn/gnunet-vpn-pretty-print.c b/src/vpn/gnunet-vpn-pretty-print.c index 87c8322ef..01427fe95 100644 --- a/src/vpn/gnunet-vpn-pretty-print.c +++ b/src/vpn/gnunet-vpn-pretty-print.c @@ -265,7 +265,7 @@ unsigned int parse_dns_name(unsigned char* d, const unsigned char* src, unsigned while (len != 0) { if (len & 0xC0) { /* Compressed name, offset in this and the next octet */ unsigned short offset = ((len & 0x3F) << 8) | src[idx++]; - parse_dns_name(dest, src, offset - 12); + parse_dns_name(dest, src, offset - 12); /* 12 for the Header of the DNS-Packet, idx starts at 0 which is 12 bytes from the start of the packet */ return idx; } memcpy(dest, src+idx, len); -- 2.25.1