<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4417.0">
<TITLE>Plz Help</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi, all</FONT>
</P>
<P><FONT SIZE=2>In order to observe how deliver module ( deliver.c ) of jabberd to work, I inserted some lines of code into the deliver.c . Compilatian was successfull. But when I try to start the jabberd, some error occured, the jabberd exited without any notice and there were nothing in the error.log.</FONT></P>
<P><FONT SIZE=2>Could someone help me settle the problem?</FONT>
</P>
<P><FONT SIZE=2>Following demonstrating how I modified the code ( hometojabber/jabberd/deliver.c):</FONT>
</P>
<P><FONT SIZE=2>void deliver(dpacket p, instance i)</FONT>
<BR><FONT SIZE=2>{</FONT>
<BR><FONT SIZE=2> ilist a, b;</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> // following 3 lines is added to observe how the module works</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> xmlnode temp=xmlnode_dup(p->x);</FONT>
<BR><FONT SIZE=2> fprintf(stderr,"Destination: %s Packet: %s \n", i->id, xmlnode2str(temp));</FONT>
<BR><FONT SIZE=2> xmlnode_free(temp); //end of my additional code</FONT>
<BR><FONT SIZE=2> </FONT>
</P>
<P><FONT SIZE=2> if(deliver__flag == 1 && p == NULL && i == NULL)</FONT>
</P>
<P><FONT SIZE=2>...</FONT>
</P>
<P><FONT SIZE=2>}</FONT>
</P>
<P><FONT SIZE=2>Many thx in advance.</FONT>
</P>
<P><FONT SIZE=2>Rui Da</FONT>
</P>
</BODY>
</HTML>