summaryrefslogtreecommitdiff
path: root/accel-pppd/libnetlink
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-01-26 16:40:53 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-01-26 16:40:53 +0400
commit0ca38d8e1246716c8b53bc3191c5cccf9f228251 (patch)
tree746b2cb3961ec60442b9f21202ee690baacf2110 /accel-pppd/libnetlink
parent9090b3c07b7b03be624599aa09be16ee85d06745 (diff)
downloadaccel-ppp-0ca38d8e1246716c8b53bc3191c5cccf9f228251.tar.gz
accel-ppp-0ca38d8e1246716c8b53bc3191c5cccf9f228251.zip
ipoe: various fixes
Diffstat (limited to 'accel-pppd/libnetlink')
-rw-r--r--accel-pppd/libnetlink/iputils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/libnetlink/iputils.c b/accel-pppd/libnetlink/iputils.c
index 0ae4b04c..17f40f3a 100644
--- a/accel-pppd/libnetlink/iputils.c
+++ b/accel-pppd/libnetlink/iputils.c
@@ -250,7 +250,8 @@ int __export iproute_add(int ifindex, in_addr_t src, in_addr_t dst)
req.i.rtm_type = RTN_UNICAST;
req.i.rtm_dst_len = 32;
- addattr32(&req.n, sizeof(req), RTA_PREFSRC, src);
+ if (src)
+ addattr32(&req.n, sizeof(req), RTA_PREFSRC, src);
addattr32(&req.n, sizeof(req), RTA_DST, dst);
addattr32(&req.n, sizeof(req), RTA_OIF, ifindex);