Don't assign, just compare...

This commit is contained in:
Michael Tuexen 2016-04-29 20:33:20 +00:00
parent 651f754421
commit 3c3f9e2a46
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298803

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,