diff -Nru xl2tpd-1.2.7.orig/call.c xl2tpd-1.2.7/call.c --- xl2tpd-1.2.7.orig/call.c 2010-08-06 00:33:46.000000000 +0200 +++ xl2tpd-1.2.7/call.c 2010-11-27 11:58:13.000000000 +0100 @@ -665,15 +665,19 @@ */ if (gconfig.debug_tunnel) { + struct in_addr inaddr; + inaddr.s_addr = addr; l2tp_log (LOG_DEBUG, "%s: allocating new tunnel for host %s, port %d.\n", - __FUNCTION__, IPADDY (addr), ntohs (port)); + __FUNCTION__, IPADDY (inaddr), ntohs (port)); } if (!(st = new_tunnel ())) { + struct in_addr inaddr; + inaddr.s_addr = addr; l2tp_log (LOG_WARNING, "%s: unable to allocate new tunnel for host %s, port %d.\n", - __FUNCTION__, IPADDY (addr), ntohs (port)); + __FUNCTION__, IPADDY (inaddr), ntohs (port)); return NULL; }; st->peer.sin_family = AF_INET;