You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2012/10/03 12:41:07 UTC

svn commit: r1393398 - /qpid/proton/trunk/proton-c/src/messenger.c

Author: rhs
Date: Wed Oct  3 10:41:07 2012
New Revision: 1393398

URL: http://svn.apache.org/viewvc?rev=1393398&view=rev
Log:
fixed outward munging

Modified:
    qpid/proton/trunk/proton-c/src/messenger.c

Modified: qpid/proton/trunk/proton-c/src/messenger.c
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/messenger.c?rev=1393398&r1=1393397&r2=1393398&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/messenger.c (original)
+++ qpid/proton/trunk/proton-c/src/messenger.c Wed Oct  3 10:41:07 2012
@@ -528,7 +528,7 @@ static void outward_munge(pn_messenger_t
 {
   const char *address = pn_message_get_reply_to(msg);
   int len = address ? strlen(address) : 0;
-  if (len > 0 && address[0] != '/') {
+  if (len > 1 && address[0] == '~' && address[1] == '/') {
     char buf[len + strlen(mng->name) + 4];
     sprintf(buf, "amqp://%s/%s", mng->name, address);
     pn_message_set_reply_to(msg, buf);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org