Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update documentation structure.
[kvmfornfv.git]
/
kernel
/
net
/
netfilter
/
ipvs
/
ip_vs_pe_sip.c
diff --git
a/kernel/net/netfilter/ipvs/ip_vs_pe_sip.c
b/kernel/net/netfilter/ipvs/ip_vs_pe_sip.c
index
bed5f70
..
0a6eb5c
100644
(file)
--- a/
kernel/net/netfilter/ipvs/ip_vs_pe_sip.c
+++ b/
kernel/net/netfilter/ipvs/ip_vs_pe_sip.c
@@
-70,10
+70,10
@@
ip_vs_sip_fill_param(struct ip_vs_conn_param *p, struct sk_buff *skb)
const char *dptr;
int retc;
const char *dptr;
int retc;
-
ip_vs_fill_iph_skb(p->af, skb
, &iph);
+
retc = ip_vs_fill_iph_skb(p->af, skb, false
, &iph);
/* Only useful with UDP */
/* Only useful with UDP */
- if (iph.protocol != IPPROTO_UDP)
+ if (
!retc ||
iph.protocol != IPPROTO_UDP)
return -EINVAL;
/* todo: IPv6 fragments:
* I think this only should be done for the first fragment. /HS
return -EINVAL;
/* todo: IPv6 fragments:
* I think this only should be done for the first fragment. /HS
@@
-88,7
+88,7
@@
ip_vs_sip_fill_param(struct ip_vs_conn_param *p, struct sk_buff *skb)
dptr = skb->data + dataoff;
datalen = skb->len - dataoff;
dptr = skb->data + dataoff;
datalen = skb->len - dataoff;
- if (get_callid(dptr,
dataoff
, datalen, &matchoff, &matchlen))
+ if (get_callid(dptr,
0
, datalen, &matchoff, &matchlen))
return -EINVAL;
/* N.B: pe_data is only set on success,
return -EINVAL;
/* N.B: pe_data is only set on success,