Package: libsofia-sip-ua0
Version: 1.12.11+20110422.1-2
Severity: important

Dear Maintainer,

the UDP transport will complain if tport_recv_dgram is called bu the
pending messagr has size 0. The SU_DEBUG message is lacking a \n at
the end, resulting in messing up the log of this and other messages.

As there is no active upstream/fork right now, please consider applying
this trivial patch. It makes working with Osmocom/OpenBSC more nice.

commit ef79da5cf1853d0cfa0f8b7b1f6fe1e621251c86
Author: Holger Hans Peter Freyther <hol...@moiji-mobile.com>
Date:   Sat Feb 11 11:59:10 2017 +0700

    udp: Add missing \n in the log statement

    Without this \n a line wrapping is missing and the log will be
    printed over and other log messages begin at the wrong place.

diff --git a/libsofia-sip-ua/tport/tport_type_udp.c 
b/libsofia-sip-ua/tport/tport_type_udp.c
index 8d0f2de..7f91999 100644
--- a/libsofia-sip-ua/tport/tport_type_udp.c
+++ b/libsofia-sip-ua/tport/tport_type_udp.c
@@ -321,7 +321,7 @@ int tport_recv_dgram(tport_t *self)
   }
   if (N == 0) {
     su_recv(self->tp_socket, sample, 1, 0);
-    SU_DEBUG_3(("tport(%p): zero length packet", (void *)self));
+    SU_DEBUG_3(("tport(%p): zero length packet\n", (void *)self));
     return 0;
   }
 #endif

-- System Information:
Debian Release: 8.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (500, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=UTF-8 (charmap=UTF-8) (ignored: LC_ALL set 
to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libsofia-sip-ua0 depends on:
ii  libc6        2.19-18+deb8u7
ii  libssl1.0.0  1.0.1t-1+deb8u5

libsofia-sip-ua0 recommends no packages.

Versions of packages libsofia-sip-ua0 suggests:
pn  sofia-sip-doc  <none>

-- no debconf information

Reply via email to