summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2016-04-29 20:33:20 +0000
committertuexen <tuexen@FreeBSD.org>2016-04-29 20:33:20 +0000
commit16e2c861e1e1918f344e92841e82dbbf29656592 (patch)
treed60f8fe98e2d16438c6bc76ec7f3cddaa6e37abf /sys
parent036d9a357deef064bf7dd458180fb5889ee693ad (diff)
downloadFreeBSD-src-16e2c861e1e1918f344e92841e82dbbf29656592.zip
FreeBSD-src-16e2c861e1e1918f344e92841e82dbbf29656592.tar.gz
Don't assign, just compare...
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/sctputil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index 03f8a15..99bfa78 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -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,
OpenPOWER on IntegriCloud