ganeshmurthy commented on a change in pull request #619: DISPATCH-1480: 
properly settle messages received by the edge address …
URL: https://github.com/apache/qpid-dispatch/pull/619#discussion_r346416345
 
 

 ##########
 File path: src/router_core/modules/edge_router/addr_proxy.c
 ##########
 @@ -460,8 +461,14 @@ static void on_transfer(void           *link_context,
 
         qd_parse_free(body);
         qd_iterator_free(iter);
+    } else {
+        qd_log(ap->core->log, QD_LOG_WARNING,
+               "Edge Address Proxy: received an invalid message body, 
rejecting");
+        dispo = PN_REJECTED;
     }
 
+    qdrc_endpoint_settle_CT(ap->core, dlv, dispo);
 
 Review comment:
   Did Address Sanitizer find this bug during run time presumably when the 
addr_proxy's on_transfer() received an invalid message body? In other words, 
was an invalid message body sent to this function? If yes, in addition to this 
fix, should the caller also be fixed to send a valid message?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to