summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-10-28 10:56:56 +0300
committerDmitry Kozlov <xeb@mail.ru>2014-10-28 10:56:56 +0300
commite7ace63e0fbb0517d6f68741b23c4920f83d7e98 (patch)
treeb47949095e80691ec9ae68f19e6403be2c6cfeb2
parent421dac7884ab3b7253ba942aa05983e47289a1a5 (diff)
downloadaccel-ppp-e7ace63e0fbb0517d6f68741b23c4920f83d7e98.tar.gz
accel-ppp-e7ace63e0fbb0517d6f68741b23c4920f83d7e98.zip
libnetlink: fixed bug introduced by previous commit
-rw-r--r--accel-pppd/libnetlink/iputils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/libnetlink/iputils.c b/accel-pppd/libnetlink/iputils.c
index 9ce4643..fb85973 100644
--- a/accel-pppd/libnetlink/iputils.c
+++ b/accel-pppd/libnetlink/iputils.c
@@ -427,7 +427,9 @@ in_addr_t __export iproute_get(in_addr_t dst, in_addr_t *gw)
struct rtattr *tb[RTA_MAX+1];
int len;
in_addr_t res = 0;
- *gw = 0;
+
+ if (gw)
+ *gw = 0;
if (!rth)
open_rth();