Don't assign, just compare...

This commit is contained in:
tuexen 2016-04-29 20:33:20 +00:00
parent 036d9a357d
commit 16e2c861e1

View File

@ -6972,8 +6972,8 @@ sctp_recv_icmp_tunneled_packet(int cmd, struct sockaddr *sa, void *vip, void *ct
}
type = icmp->icmp_type;
code = icmp->icmp_code;
if ((type = ICMP_UNREACH) &&
(code = ICMP_UNREACH_PORT)) {
if ((type == ICMP_UNREACH) &&
(code == ICMP_UNREACH_PORT)) {
code = ICMP_UNREACH_PROTOCOL;
}
sctp_notify(inp, stcb, net, type, code,