diff options
-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(); |