summaryrefslogtreecommitdiff
path: root/package/totd/patches/patch-ne_mesg_c
blob: db9633becae0b235267fffe9ea1c05dbe417f12d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
	fix for verbose logging
--- totd-1.5.orig/ne_mesg.c	2002-12-10 23:31:18.000000000 +0100
+++ totd-1.5/ne_mesg.c	2010-03-25 23:45:35.185664417 +0100
@@ -470,6 +470,12 @@ u_char *dname_decompress (u_char *buf, i
 
 	next = NULL;
 	written_len = token_len = 0;
+
+	if (!m_head)
+		m_head = dname;
+	if (!m_tail)
+		m_tail = dname + buflen;
+
 	for (cp = dname; *cp; cp += token_len) {
 		iter = 0;
 	  top: