I see that following function pn_message_encode() returns -2 with send.c
example.

My findings, Kindly review the below code:

Changes made to fix is highlighted in bold, What is the significance of
passing '1' first node? 

int *pni_data_traverse*(pn_data_t *data,
                      int (*enter)(void *ctx, pn_data_t *data, pni_node_t
*node),
                      int (*exit)(void *ctx, pn_data_t *data, pni_node_t
*node),
                      void *ctx)
{
  *pni_node_t *node = data->size ? pn_data_node(data, data->current) :
NULL;*
  //pni_node_t *node = data->size ? pn_data_node(data,* 1*) : NULL;


Thanks in Advance





--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Function-pn-message-encode-returns-2-tp7634948.html
Sent from the Apache Qpid Proton mailing list archive at Nabble.com.

Reply via email to