You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/01/03 22:40:56 UTC

[GitHub] [mynewt-core] wes3 opened a new pull request #2141: net/oic: Handle cbor error in dispatch_coap_request()

wes3 opened a new pull request #2141: net/oic: Handle cbor error in dispatch_coap_request()
URL: https://github.com/apache/mynewt-core/pull/2141
 
 
   If there was an error during cbor processing the code in dispatch_coap_request() would set an incorrect payload length of 0xffff since the return code of -1 was being interpreted as a length instead of an error. The new code checks for error from oc_rep_finalize(), and if there is an error, frees the appropriate buffers and clears and transactions (if any).

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [mynewt-core] wes3 merged pull request #2141: net/oic: Handle cbor error in dispatch_coap_request()

Posted by GitBox <gi...@apache.org>.
wes3 merged pull request #2141: net/oic: Handle cbor error in dispatch_coap_request()
URL: https://github.com/apache/mynewt-core/pull/2141
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services