Skip to contentSkip to conversation

memory cleanup after setverdict

DISCUSSION Oumer Teyeb 1 participant 1 message Oct 13, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

I thought once the set verdict is called, the ipq_packet_msg_t param that was holding the packet will be freed by libipq. but I can access it after the setverdict is called, and also the data I have copied. For example, in a code like this

ipq_packet_msg_t *m = ipq_get_packet(buf);

ipq_set_verdict(handler, m->packet_id, NF_ACCEPT, 0, NULL);

fwrite ((usnigned int *) (m+1), 1, m->data_len, file);

I expected the third call to fail, but it doesn't. Then when is the memory used by the ipq_packet_msg_t parameter freed? Or am I responsible for freeing it myself?

Regards,
Oumer