aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/dn_rules.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/decnet/dn_rules.c')
-rw-r--r--net/decnet/dn_rules.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c
index f65c9ddaee41..7399e3d51922 100644
--- a/net/decnet/dn_rules.c
+++ b/net/decnet/dn_rules.c
@@ -204,11 +204,11 @@ static int dn_fib_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
204 frh->src_len = r->src_len; 204 frh->src_len = r->src_len;
205 frh->tos = 0; 205 frh->tos = 0;
206 206
207 if (r->dst_len) 207 if ((r->dst_len &&
208 NLA_PUT_LE16(skb, FRA_DST, r->dst); 208 nla_put_le16(skb, FRA_DST, r->dst)) ||
209 if (r->src_len) 209 (r->src_len &&
210 NLA_PUT_LE16(skb, FRA_SRC, r->src); 210 nla_put_le16(skb, FRA_SRC, r->src)))
211 211 goto nla_put_failure;
212 return 0; 212 return 0;
213 213
214nla_put_failure: 214nla_put_failure: