Hi, all
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.
Could someone help me settle the problem?
Following demonstrating how I modified the code ( hometojabber/jabberd/deliver.c):
void deliver(dpacket p, instance i)
{
ilist a, b;
// following 3 lines is added to observe how the module works
xmlnode temp=xmlnode_dup(p->x);
fprintf(stderr,"Destination: %s Packet: %s \n", i->id, xmlnode2str(temp));
xmlnode_free(temp); //end of my additional code
if(deliver__flag == 1 && p == NULL && i == NULL)
...
}
Many thx in advance.
Rui Da
