[imapfilter-devel] Small bug in response.c

Per Westerlund per.westerlund at proact.se
Wed May 25 12:19:33 EEST 2005


(imapfilter-1.0.1)

Hi,

while debugging another problem, I ran imapfilter with -d and got a core
dump. I isolated this problem to the debug printout in the function
response_namespace() in the file "response.c".

In my environment, there is no namespace prefix, so the initialization

	ssn->ns.prefix = NULL;

never gets changed. Later, when we get to the line

debug("namespace (%d): '%s' '%c'\n", ssn->socket, ssn->ns.prefix,
     ssn->ns.delim);

ssn->ns.prefix is still NULL, and using that with a "%s" format blows up
on my machine.

-- 
Per Westerlund
Senior System Engineer

E-mail: per.westerlund at proact.se
Web: http://www.proact.se




More information about the Imapfilter-devel mailing list