From: Philipp Tölke Date: Tue, 5 Oct 2010 18:20:16 +0000 (+0000) Subject: add clarifying comment to a magic number X-Git-Tag: initial-import-from-subversion-38251~20174 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=81f94aa0f1209d5643a1dba9f3ce99b164ce2df5;p=oweals%2Fgnunet.git add clarifying comment to a magic number --- 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);