]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9227: [sofia-sip] fix Wrong byte order in HEP packet for source and destination...
authorAlexandr Dubovikov <alexandr.dubovikov@gmail.com>
Fri, 3 Jun 2016 14:04:53 +0000 (09:04 -0500)
committerMichael Jerris <mike@jerris.com>
Tue, 7 Jun 2016 17:30:58 +0000 (12:30 -0500)
libs/sofia-sip/libsofia-sip-ua/tport/tport_logging.c

index b66989b99ef95bda2a00ca2ee48e290bbd8d3f49..3e7f933f8cb6871d4dac7046f1400ae8d83412c5 100644 (file)
@@ -694,13 +694,13 @@ int tport_capt_msg_hepv3 (tport_t const *self, msg_t *msg, size_t n,
    /* SRC PORT */
     hg->src_port.chunk.vendor_id = htons(0x0000);
     hg->src_port.chunk.type_id   = htons(0x0007);
-    hg->src_port.data = dst ? htons(su->su_port) : htons(su_self->su_port);
+    hg->src_port.data = dst ? su->su_port : su_self->su_port;
     hg->src_port.chunk.length = htons(sizeof(hg->src_port));
 
     /* DST PORT */
     hg->dst_port.chunk.vendor_id = htons(0x0000);
     hg->dst_port.chunk.type_id   = htons(0x0008);
-    hg->dst_port.data = dst ? htons(su_self->su_port) : htons(su->su_port);
+    hg->dst_port.data = dst ? su_self->su_port : su->su_port;
     hg->dst_port.chunk.length = htons(sizeof(hg->dst_port));