From e7ace63e0fbb0517d6f68741b23c4920f83d7e98 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 28 Oct 2014 10:56:56 +0300 Subject: libnetlink: fixed bug introduced by previous commit --- accel-pppd/libnetlink/iputils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'accel-pppd/libnetlink') diff --git a/accel-pppd/libnetlink/iputils.c b/accel-pppd/libnetlink/iputils.c index 9ce4643f..fb85973b 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(); -- cgit v1.2.3