diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-10-28 10:56:56 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-10-28 10:56:56 +0300 |
commit | e7ace63e0fbb0517d6f68741b23c4920f83d7e98 (patch) | |
tree | b47949095e80691ec9ae68f19e6403be2c6cfeb2 | |
parent | 421dac7884ab3b7253ba942aa05983e47289a1a5 (diff) | |
download | accel-ppp-e7ace63e0fbb0517d6f68741b23c4920f83d7e98.tar.gz accel-ppp-e7ace63e0fbb0517d6f68741b23c4920f83d7e98.zip |
libnetlink: fixed bug introduced by previous commit
-rw-r--r-- | accel-pppd/libnetlink/iputils.c | 4 |
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(); |