diff options
Diffstat (limited to 'net-dialup/xl2tpd/files/xl2tpd-1.2.7-qa-fixes.patch')
-rw-r--r-- | net-dialup/xl2tpd/files/xl2tpd-1.2.7-qa-fixes.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-dialup/xl2tpd/files/xl2tpd-1.2.7-qa-fixes.patch b/net-dialup/xl2tpd/files/xl2tpd-1.2.7-qa-fixes.patch new file mode 100644 index 000000000000..10c5e6dde53d --- /dev/null +++ b/net-dialup/xl2tpd/files/xl2tpd-1.2.7-qa-fixes.patch @@ -0,0 +1,25 @@ +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; |