Segmentation fault in priority_queue_add


I am having difficulties solving an error that is generated in the priority_queue_add function. The node->next object exists but the node->next->priority cannot be accessed. The strange thing is that the originating function socket_base_sendto works a couple of times before that.

I have included the back trace of the error and the valgrind error.

Does someone have an idea of what could cause this error?

Kind regards,

Jori Winderickx

Priority_queue_add (69.4 KB)