From 16e2c861e1e1918f344e92841e82dbbf29656592 Mon Sep 17 00:00:00 2001 From: tuexen Date: Fri, 29 Apr 2016 20:33:20 +0000 Subject: [PATCH] Don't assign, just compare... --- sys/netinet/sctputil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 03f8a15f9162..99bfa782cb8b 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,