You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2014/10/10 14:41:26 UTC
svn commit: r1630788 -
/qpid/proton/branches/examples/proton-c/src/engine/engine.c
Author: gsim
Date: Fri Oct 10 12:41:25 2014
New Revision: 1630788
URL: http://svn.apache.org/r1630788
Log:
made pn_link_send gracefully handle NULL
Modified:
qpid/proton/branches/examples/proton-c/src/engine/engine.c
Modified: qpid/proton/branches/examples/proton-c/src/engine/engine.c
URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/proton-c/src/engine/engine.c?rev=1630788&r1=1630787&r2=1630788&view=diff
==============================================================================
--- qpid/proton/branches/examples/proton-c/src/engine/engine.c (original)
+++ qpid/proton/branches/examples/proton-c/src/engine/engine.c Fri Oct 10 12:41:25 2014
@@ -1477,6 +1477,7 @@ ssize_t pn_link_send(pn_link_t *sender,
{
pn_delivery_t *current = pn_link_current(sender);
if (!current) return PN_EOS;
+ if (!bytes || !n) return 0;
pn_buffer_append(current->bytes, bytes, n);
sender->session->outgoing_bytes += n;
pn_add_tpwork(current);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org