accept_connection(): Fix crashes with "listen-addr :8118"
authorFabian Keil <fk@fabiankeil.de>
Mon, 22 Aug 2016 14:50:18 +0000 (14:50 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 22 Aug 2016 14:50:18 +0000 (14:50 +0000)
commitba6fd5d712b374074d962ce0158862be9e2146da
treec6bdffdaa6ed0e83a66345321d58eeec33e914cb
parent42c361793c45b0d5fc0c116707ca12b2f60f4c52
accept_connection(): Fix crashes with "listen-addr :8118"

After jbsockets.c v1.136 a valid text representation of
the host address is required for the $listen-address
variable. If no host address has been specified, use an
empty string to prevent NULL pointer dereferences.

The problem was reported by Marvin Renich in Debian bug #834941,
the offending commit was tracked down by Roland in SF Bug #902.
jbsockets.c